From c0233354e35305716526cd24d69bdf1e0a573c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Sat, 9 Aug 2025 01:41:51 +0100 Subject: [PATCH 1/6] fix bug in toc for articles --- layouts/_default/single.html | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6d1f9c1f..982142d1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -31,7 +31,7 @@ {{/* Body */}}
- {{ $enableToc := .Params.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }} + {{ $enableToc := site.Params.article.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }} {{ $showToc := and $enableToc (in .TableOfContents " Date: Wed, 10 Sep 2025 12:58:58 +0800 Subject: [PATCH 2/6] add icons: cloud, cloud-moon --- assets/icons/cloud-moon.svg | 1 + assets/icons/cloud.svg | 1 + exampleSite/content/samples/icons/index.it.md | 6 ++++++ exampleSite/content/samples/icons/index.ja.md | 9 ++++++++- exampleSite/content/samples/icons/index.md | 2 ++ exampleSite/content/samples/icons/index.zh-cn.md | 9 ++++++++- 6 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 assets/icons/cloud-moon.svg create mode 100644 assets/icons/cloud.svg diff --git a/assets/icons/cloud-moon.svg b/assets/icons/cloud-moon.svg new file mode 100644 index 00000000..5c2357ee --- /dev/null +++ b/assets/icons/cloud-moon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/cloud.svg b/assets/icons/cloud.svg new file mode 100644 index 00000000..03e72c07 --- /dev/null +++ b/assets/icons/cloud.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/exampleSite/content/samples/icons/index.it.md b/exampleSite/content/samples/icons/index.it.md index ea4e6d8e..b261a61b 100644 --- a/exampleSite/content/samples/icons/index.it.md +++ b/exampleSite/content/samples/icons/index.it.md @@ -27,6 +27,8 @@ The full list of built-in icons and their corresponding names can referenced bel | bug | {{< icon bug >}} | | check | {{< icon check >}} | | circle-info | {{< icon circle-info >}} | +| cloud | {{< icon cloud >}} | +| cloud-moon | {{< icon cloud-moon >}} | | code | {{< icon code>}} | | codeberg | {{< icon codeberg >}} | | codepen | {{< icon codepen >}} | @@ -42,6 +44,7 @@ The full list of built-in icons and their corresponding names can referenced bel | expand | {{< icon expand >}} | | eye | {{< icon eye >}} | | facebook | {{< icon facebook >}} | +| fediverse | {{< icon fediverse >}} | | fire | {{< icon fire >}} | | flickr | {{< icon flickr >}} | | fork | {{< icon fork >}} | @@ -62,6 +65,7 @@ The full list of built-in icons and their corresponding names can referenced bel | instagram | {{< icon instagram >}} | | itch-io | {{< icon itch-io >}} | | keybase | {{< icon keybase >}} | +| keyoxide | {{< icon keyoxide >}} | | kickstarter | {{< icon kickstarter >}} | | ko-fi | {{< icon ko-fi >}} | | language | {{< icon language >}} | @@ -74,6 +78,7 @@ The full list of built-in icons and their corresponding names can referenced bel | location-dot | {{< icon location-dot >}} | | lock | {{< icon lock >}} | | mastodon | {{< icon mastodon >}} | +| matrix | {{< icon matrix >}} | | medium | {{< icon medium >}} | | microsoft | {{< icon microsoft >}} | | moon | {{< icon moon >}} | @@ -96,6 +101,7 @@ The full list of built-in icons and their corresponding names can referenced bel | scale-balanced | {{< icon scale-balanced >}} | | search | {{< icon search >}} | | shield | {{< icon shield >}} | +| signal | {{< icon signal >}} | | skull-crossbones | {{< icon skull-crossbones >}} | | slack | {{< icon slack >}} | | snapchat | {{< icon snapchat >}} | diff --git a/exampleSite/content/samples/icons/index.ja.md b/exampleSite/content/samples/icons/index.ja.md index ac9fdd0d..1a8f7b84 100644 --- a/exampleSite/content/samples/icons/index.ja.md +++ b/exampleSite/content/samples/icons/index.ja.md @@ -27,6 +27,8 @@ Blowfish はいくつもの [FontAwesome 6](https://fontawesome.com/icons) の | bug | {{< icon bug >}} | | check | {{< icon check >}} | | circle-info | {{< icon circle-info >}} | +| cloud | {{< icon cloud >}} | +| cloud-moon | {{< icon cloud-moon >}} | | code | {{< icon code>}} | | codeberg | {{< icon codeberg >}} | | codepen | {{< icon codepen >}} | @@ -42,6 +44,7 @@ Blowfish はいくつもの [FontAwesome 6](https://fontawesome.com/icons) の | expand | {{< icon expand >}} | | eye | {{< icon eye >}} | | facebook | {{< icon facebook >}} | +| fediverse | {{< icon fediverse >}} | | fire | {{< icon fire >}} | | flickr | {{< icon flickr >}} | | fork | {{< icon fork >}} | @@ -62,6 +65,7 @@ Blowfish はいくつもの [FontAwesome 6](https://fontawesome.com/icons) の | instagram | {{< icon instagram >}} | | itch-io | {{< icon itch-io >}} | | keybase | {{< icon keybase >}} | +| keyoxide | {{< icon keyoxide >}} | | kickstarter | {{< icon kickstarter >}} | | ko-fi | {{< icon ko-fi >}} | | language | {{< icon language >}} | @@ -74,6 +78,7 @@ Blowfish はいくつもの [FontAwesome 6](https://fontawesome.com/icons) の | location-dot | {{< icon location-dot >}} | | lock | {{< icon lock >}} | | mastodon | {{< icon mastodon >}} | +| matrix | {{< icon matrix >}} | | medium | {{< icon medium >}} | | microsoft | {{< icon microsoft >}} | | moon | {{< icon moon >}} | @@ -96,6 +101,7 @@ Blowfish はいくつもの [FontAwesome 6](https://fontawesome.com/icons) の | scale-balanced | {{< icon scale-balanced >}} | | search | {{< icon search >}} | | shield | {{< icon shield >}} | +| signal | {{< icon signal >}} | | skull-crossbones | {{< icon skull-crossbones >}} | | slack | {{< icon slack >}} | | snapchat | {{< icon snapchat >}} | @@ -117,7 +123,8 @@ Blowfish はいくつもの [FontAwesome 6](https://fontawesome.com/icons) の | twitter | {{< icon twitter >}} | | wand-magic-sparkles | {{< icon wand-magic-sparkles >}} | | whatsapp | {{< icon whatsapp >}} | +| worktree | {{< icon worktree >}} | | x-twitter | {{< icon x-twitter >}} | | xing | {{< icon xing >}} | | xmark | {{< icon xmark >}} | -| youtube | {{< icon youtube >}} | \ No newline at end of file +| youtube | {{< icon youtube >}} | diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index e1237eeb..ba010b61 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -27,6 +27,8 @@ The full list of built-in icons and their corresponding names can referenced bel | bug | {{< icon bug >}} | | check | {{< icon check >}} | | circle-info | {{< icon circle-info >}} | +| cloud | {{< icon cloud >}} | +| cloud-moon | {{< icon cloud-moon >}} | | code | {{< icon code>}} | | codeberg | {{< icon codeberg >}} | | codepen | {{< icon codepen >}} | diff --git a/exampleSite/content/samples/icons/index.zh-cn.md b/exampleSite/content/samples/icons/index.zh-cn.md index 2abd6777..5f38535f 100644 --- a/exampleSite/content/samples/icons/index.zh-cn.md +++ b/exampleSite/content/samples/icons/index.zh-cn.md @@ -27,6 +27,8 @@ Blowfish 内置了许多 [FontAwesome 6](https://fontawesome.com/icons) 中的 | bug | {{< icon bug >}} | | check | {{< icon check >}} | | circle-info | {{< icon circle-info >}} | +| cloud | {{< icon cloud >}} | +| cloud-moon | {{< icon cloud-moon >}} | | code | {{< icon code>}} | | codeberg | {{< icon codeberg >}} | | codepen | {{< icon codepen >}} | @@ -42,6 +44,7 @@ Blowfish 内置了许多 [FontAwesome 6](https://fontawesome.com/icons) 中的 | expand | {{< icon expand >}} | | eye | {{< icon eye >}} | | facebook | {{< icon facebook >}} | +| fediverse | {{< icon fediverse >}} | | fire | {{< icon fire >}} | | flickr | {{< icon flickr >}} | | fork | {{< icon fork >}} | @@ -62,6 +65,7 @@ Blowfish 内置了许多 [FontAwesome 6](https://fontawesome.com/icons) 中的 | instagram | {{< icon instagram >}} | | itch-io | {{< icon itch-io >}} | | keybase | {{< icon keybase >}} | +| keyoxide | {{< icon keyoxide >}} | | kickstarter | {{< icon kickstarter >}} | | ko-fi | {{< icon ko-fi >}} | | language | {{< icon language >}} | @@ -74,6 +78,7 @@ Blowfish 内置了许多 [FontAwesome 6](https://fontawesome.com/icons) 中的 | location-dot | {{< icon location-dot >}} | | lock | {{< icon lock >}} | | mastodon | {{< icon mastodon >}} | +| matrix | {{< icon matrix >}} | | medium | {{< icon medium >}} | | microsoft | {{< icon microsoft >}} | | moon | {{< icon moon >}} | @@ -96,6 +101,7 @@ Blowfish 内置了许多 [FontAwesome 6](https://fontawesome.com/icons) 中的 | scale-balanced | {{< icon scale-balanced >}} | | search | {{< icon search >}} | | shield | {{< icon shield >}} | +| signal | {{< icon signal >}} | | skull-crossbones | {{< icon skull-crossbones >}} | | slack | {{< icon slack >}} | | snapchat | {{< icon snapchat >}} | @@ -117,7 +123,8 @@ Blowfish 内置了许多 [FontAwesome 6](https://fontawesome.com/icons) 中的 | twitter | {{< icon twitter >}} | | wand-magic-sparkles | {{< icon wand-magic-sparkles >}} | | whatsapp | {{< icon whatsapp >}} | +| worktree | {{< icon worktree >}} | | x-twitter | {{< icon x-twitter >}} | | xing | {{< icon xing >}} | | xmark | {{< icon xmark >}} | -| youtube | {{< icon youtube >}} | \ No newline at end of file +| youtube | {{< icon youtube >}} | From 479e2efff4d41ae22c204901bdbf4f4f61ecf871 Mon Sep 17 00:00:00 2001 From: ish <5170081+iunn-sh@users.noreply.github.com> Date: Wed, 10 Sep 2025 13:03:47 +0800 Subject: [PATCH 3/6] fix conflict with `dev` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4bd40ae2..d99922ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.89.1", + "version": "2.90.0", "description": "Blowfish theme for Hugo.", "scripts": { "postinstall": "vendor-copy", From c648324aca7653a96ec47555713f9cd5da4f5f5e Mon Sep 17 00:00:00 2001 From: ish <5170081+iunn-sh@users.noreply.github.com> Date: Wed, 10 Sep 2025 13:08:39 +0800 Subject: [PATCH 4/6] fix current color --- assets/icons/cloud-moon.svg | 2 +- assets/icons/cloud.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/icons/cloud-moon.svg b/assets/icons/cloud-moon.svg index 5c2357ee..aea793a7 100644 --- a/assets/icons/cloud-moon.svg +++ b/assets/icons/cloud-moon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/icons/cloud.svg b/assets/icons/cloud.svg index 03e72c07..545d63ab 100644 --- a/assets/icons/cloud.svg +++ b/assets/icons/cloud.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file From 9906b03fa95bc0c0161b37333b4e35c316adf6ac Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Sat, 16 Aug 2025 21:20:18 +0800 Subject: [PATCH 5/6] fix(single.html): toc not controlled by frontmatter (#2421) --- layouts/_default/single.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 982142d1..9395c322 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -31,7 +31,8 @@ {{/* Body */}}
- {{ $enableToc := site.Params.article.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }} + {{ $enableToc := site.Params.article.showTableOfContents | default false }} + {{ $enableToc = .Params.showTableOfContents | default $enableToc }} {{ $showToc := and $enableToc (in .TableOfContents " Date: Tue, 16 Sep 2025 10:10:40 +0800 Subject: [PATCH 6/6] revert unrelated change --- layouts/_default/single.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ab65dc86..7a879316 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -31,8 +31,7 @@ {{/* Body */}}
- {{ $enableToc := site.Params.article.showTableOfContents | default false }} - {{ $enableToc = .Params.showTableOfContents | default $enableToc }} + {{ $enableToc := .Params.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }} {{ $showToc := and $enableToc (in .TableOfContents "