From 834435db00cd40f1681d562d1ce2487545fb51bb Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sat, 20 Jul 2024 07:01:13 +0200 Subject: [PATCH 1/2] Adjust warning for invalid local url --- layouts/partials/assets/navbar-item.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/assets/navbar-item.html b/layouts/partials/assets/navbar-item.html index 43f0a1af..16617185 100644 --- a/layouts/partials/assets/navbar-item.html +++ b/layouts/partials/assets/navbar-item.html @@ -50,7 +50,7 @@ {{ else }} {{ $ref := partial "utilities/GetPage.html" (dict "url" $url.Path "page" $page) }} {{- if not $ref -}} - {{- warnf "partial [assets/navbar-item.html] - Cannot find page of menu item '%s': %s" $menu $url -}} + {{- warnf "partial [assets/navbar-item.html] - Cannot find page of menu item '%s': %s" $menu.Name $url -}} {{ end }} {{ end -}} From fe70b2485987e2e35dc998c640b4916713d6ace8 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:41:52 +0200 Subject: [PATCH 2/2] Suppress image container when wrapper class is empty --- .../assets/helpers/image-definition.html | 34 ++++++++++--------- package-lock.json | 4 +-- package.json | 2 +- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/layouts/partials/assets/helpers/image-definition.html b/layouts/partials/assets/helpers/image-definition.html index 3e963194..210074b4 100644 --- a/layouts/partials/assets/helpers/image-definition.html +++ b/layouts/partials/assets/helpers/image-definition.html @@ -50,24 +50,26 @@ {{- if $caption -}}
+{{ else }} + {{ with $wrapper }}
{{ end }} +{{ end }} +{{- if not $anchor -}} + +{{- else }} + + + {{ end }} -
- {{- if not $anchor -}} - - {{- else }} - - - - {{ end }} -
{{- if $caption -}}
{{ $caption | safeHTML }}
+{{ else if $wrapper }} + {{- end -}} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 17f80494..39022c98 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gethinode/hinode", - "version": "0.24.16", + "version": "0.24.17", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gethinode/hinode", - "version": "0.24.16", + "version": "0.24.17", "license": "MIT", "dependencies": { "@fullhuman/postcss-purgecss": "^6.0.0", diff --git a/package.json b/package.json index 00612bc6..4eb74399 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gethinode/hinode", - "version": "0.24.16", + "version": "0.24.17", "description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator", "keywords": [ "hugo",