From f762efde93abe3adf1a9c7ae38013eed6b8ecd1c Mon Sep 17 00:00:00 2001 From: Nicolas Lorin Date: Sat, 11 Mar 2023 11:00:18 +0100 Subject: [PATCH 1/7] Accessibility: no alt text for bg img --- layouts/partials/home/background.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "") }} - +
From 6af086dd65fafaf4eeafe9ed21d249a78ce6820c Mon Sep 17 00:00:00 2001 From: Nicolas Lorin Date: Sat, 11 Mar 2023 11:03:26 +0100 Subject: [PATCH 2/7] Perf: add fixed image ratio --- layouts/partials/hero/big.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/hero/big.html b/layouts/partials/hero/big.html index f6287df4..bb96c345 100644 --- a/layouts/partials/hero/big.html +++ b/layouts/partials/hero/big.html @@ -6,11 +6,11 @@ {{- with $featured -}} {{ if $disableImageOptimization }} {{ with . }} - + {{ end }} {{ else }} {{ with .Resize "1200x" }} - + {{ end }} {{ end }} {{- end -}} \ No newline at end of file From b00813ad26e85b86693d2ab4e2890ba3bdacd6b9 Mon Sep 17 00:00:00 2001 From: Nicolas Lorin Date: Sat, 11 Mar 2023 11:04:40 +0100 Subject: [PATCH 3/7] Accessibility: add alt text for big hero --- layouts/partials/hero/big.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/hero/big.html b/layouts/partials/hero/big.html index bb96c345..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 From 81e825ca9afa80917e21dc30dc7586f16ba3ce77 Mon Sep 17 00:00:00 2001 From: madoke Date: Sun, 12 Mar 2023 12:53:14 +0000 Subject: [PATCH 4/7] Use article/page configured summary ahead of default --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e1917c31..3a1bcae6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -14,7 +14,7 @@ {{- end }} {{/* Metadata */}} - {{ with .Site.Params.description -}} + {{ with .Params.Summary | default .Site.Params.description -}} {{- end }} {{ with .Site.Params.keywords -}} From bbacdd1dbd34c17ddb8e3146fe6d4645b64b6764 Mon Sep 17 00:00:00 2001 From: madoke Date: Sun, 12 Mar 2023 18:53:13 +0000 Subject: [PATCH 5/7] Use tags ahead of site default keywords --- layouts/partials/head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3a1bcae6..34a89492 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -17,8 +17,8 @@ {{ with .Params.Summary | default .Site.Params.description -}} {{- end }} - {{ with .Site.Params.keywords -}} - + {{ with .Params.Tags | default .Site.Params.keywords -}} + {{- end }} {{ with .Site.Params.robots }} From ebdbc25ad328f9d09d14ce397b038d492820e7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Sun, 12 Mar 2023 19:41:43 +0000 Subject: [PATCH 6/7] :up: bump support for Hugo version v0.111.3 --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 16e7f80badb2ff28a913ac027bc8f6d52594e0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Sun, 12 Mar 2023 19:46:03 +0000 Subject: [PATCH 7/7] bumped version to v2.31.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",