diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index e342cb7..8f5de32 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -6,7 +6,7 @@ */}} {{- partial "image.html" (dict "Img" (.Page.Resources.Get .Destination) - "Title" .Title + "Alt" .Text "Width" 698 ) }} diff --git a/layouts/blog/blog.html b/layouts/blog/blog.html index f5bfd30..5edd13a 100644 --- a/layouts/blog/blog.html +++ b/layouts/blog/blog.html @@ -22,7 +22,7 @@

Blog

{{ partial "image.html" (dict "Img" $thumbnail "Class" "blog--item-thumbnail" - "Title" $page.Title + "Alt" $page.Title "Width" 450 ) }} @@ -41,7 +41,7 @@

Blog

{{ partial "image.html" (dict "Img" $avatar "Class" "blog--item-userpic" - "Title" .Params.author + "Alt" .Params.author "Width" 24 ) }} {{ .Params.author }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 3e2909c..cdda912 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -20,7 +20,7 @@

{{ .Title }}

{{ partial "image.html" (dict "Img" $avatar "Class" "article--userpic" - "Title" .Params.author + "Alt" .Params.author "Width" 24 ) }} diff --git a/layouts/partials/image.html b/layouts/partials/image.html index d935a05..f3406f5 100644 --- a/layouts/partials/image.html +++ b/layouts/partials/image.html @@ -19,12 +19,12 @@ {{- if $preview }} - {{ $imgTag }} src="{{ $preview.RelPermalink }}" srcset="{{ .Img.RelPermalink }} 2x" alt="{{ .Title }}"> + {{ $imgTag }} src="{{ $preview.RelPermalink }}" srcset="{{ .Img.RelPermalink }} 2x" alt="{{ .Alt }}"> {{- else }} - {{ $imgTag }} src="{{ .Img.RelPermalink }}" alt="{{ .Title }}"> + {{ $imgTag }} src="{{ .Img.RelPermalink }}" alt="{{ .Alt }}"> {{- end }} {{- else }} - {{ $imgTag }} src="{{ .Img.RelPermalink }}" alt="{{ .Title }}"> + {{ $imgTag }} src="{{ .Img.RelPermalink }}" alt="{{ .Alt }}"> {{- end }}