From 7049775470ea56472f18be64031a771efaba4683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Sun, 1 Jan 2023 22:23:42 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fixed=20likes=20and=20view?= =?UTF-8?q?=20counters=20for=20taxonomies=20and=20terms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/_default/taxonomy.html | 4 ++-- layouts/_default/term.html | 4 ++-- layouts/partials/meta/likes.html | 6 ++++++ layouts/partials/meta/views.html | 6 ++++++ package.json | 2 +- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 4d7d030c..aa8e4b10 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -30,8 +30,8 @@ {{ end }} {{ $jsPage := resources.Get "js/page.js" }} {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 8a0d1e5e..dcaed108 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -28,8 +28,8 @@ {{ end }} {{ $jsPage := resources.Get "js/page.js" }} {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }} diff --git a/layouts/partials/meta/likes.html b/layouts/partials/meta/likes.html index 3f213195..ac07fb6b 100644 --- a/layouts/partials/meta/likes.html +++ b/layouts/partials/meta/likes.html @@ -1,5 +1,11 @@ + {{ if eq .Kind "taxonomy"}} + 0 + {{ else if eq .Kind "term"}} + 0 + {{ else }} 0 + {{ end }} {{ partial "icon.html" "heart" }} {{- /* Trim EOF */ -}} \ No newline at end of file diff --git a/layouts/partials/meta/views.html b/layouts/partials/meta/views.html index 51b32aa5..420a2d6c 100644 --- a/layouts/partials/meta/views.html +++ b/layouts/partials/meta/views.html @@ -1,5 +1,11 @@ + {{ if eq .Kind "taxonomy"}} + 0 + {{ else if eq .Kind "term"}} + 0 + {{ else }} 0 + {{ end }} {{ partial "icon.html" "eye" }} {{- /* Trim EOF */ -}} diff --git a/package.json b/package.json index df078707..5795374b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.22.1", + "version": "2.22.2", "description": "Blowfish theme for Hugo", "scripts": { "fullinstall": "npm run preinstall && npm install && npm run postinstall", From 9c3326f395a791b5b21cba26b6ab29c53f97e3c7 Mon Sep 17 00:00:00 2001 From: Miles Pernicious Date: Sun, 1 Jan 2023 23:55:00 -1000 Subject: [PATCH 2/2] Fix missing title attribute from search button This was caused by an extra space before an enquoted identifier, causing the i18n lookup to fail. --- layouts/partials/header/basic.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index cb3b0d0c..0da1855d 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -38,7 +38,7 @@ {{ if .Site.Params.enableSearch | default false }} {{ end }} @@ -68,7 +68,7 @@ {{ if .Site.Params.enableSearch | default false }} {{ end }} @@ -121,4 +121,4 @@ - \ No newline at end of file +