diff --git a/layouts/partials/hero/big.html b/layouts/partials/hero/big.html index f6287df4..cbdce5d5 100644 --- a/layouts/partials/hero/big.html +++ b/layouts/partials/hero/big.html @@ -3,14 +3,16 @@ {{- $images := .Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} +{{- $alt := .Page.Title -}} +{{- with .Page.Params.alt }}{{ $alt = . }}{{ end -}} {{- with $featured -}} {{ if $disableImageOptimization }} {{ with . }} - + {{ $alt }} {{ end }} {{ else }} {{ with .Resize "1200x" }} - + {{ $alt }} {{ end }} {{ end }} {{- end -}} \ No newline at end of file diff --git a/layouts/partials/home/background.html b/layouts/partials/home/background.html index 8bce94c0..e5859b73 100644 --- a/layouts/partials/home/background.html +++ b/layouts/partials/home/background.html @@ -8,7 +8,7 @@ {{ with .Site.Params.defaultBackgroundImage }}{{ $homepageImage = resources.Get . }}{{ end }} {{ with .Site.Params.homepage.homepageImage }}{{ $homepageImage = resources.Get . }}{{ end }} {{ if not (eq $homepageImage "") }} - +