diff --git a/config.toml b/config.toml index 57ed9678..84c3d802 100644 --- a/config.toml +++ b/config.toml @@ -2,4 +2,4 @@ [module.hugoVersion] extended = true min = "0.87.0 " - max = "0.111.2" \ No newline at end of file + max = "0.111.3" \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e1917c31..34a89492 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -14,11 +14,11 @@ {{- end }} {{/* Metadata */}} - {{ with .Site.Params.description -}} + {{ with .Params.Summary | default .Site.Params.description -}} {{- end }} - {{ with .Site.Params.keywords -}} - + {{ with .Params.Tags | default .Site.Params.keywords -}} + {{- end }} {{ with .Site.Params.robots }} 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 "") }} - +
diff --git a/package.json b/package.json index b0e9d806..1249332c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.31.0", + "version": "2.31.1", "description": "Blowfish theme for Hugo", "scripts": { "fullinstall": "npm run preinstall && npm install && npm run postinstall",