From 73f6155a40ddd3f5c8d459d03b510d696bbe5ace Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 8 Mar 2026 09:26:17 +0800 Subject: fix: unwanted
::marker on Safari tried the solution here https://stackoverflow.com/questions/6195329/how-can-you-hide-the-arrow-that-is-displayed-by-default-on-the-html5-details-e did not work displaying as a flex container hides it somehow --- layouts/_partials/posts/action-menu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_partials') diff --git a/layouts/_partials/posts/action-menu.html b/layouts/_partials/posts/action-menu.html index 215dc96a..88bb8f8b 100644 --- a/layouts/_partials/posts/action-menu.html +++ b/layouts/_partials/posts/action-menu.html @@ -16,7 +16,7 @@ {{ partial "posts/action-area" . }}
- + {{ partial "posts/webmention-summary" (dict "likes" $likes "page" . -- cgit v1.2.3 From 294ad30fe625cebc41fe1927cf77f0cafc8668ba Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 8 Mar 2026 11:00:14 +0800 Subject: feat: show archvied and pinned categorises --- layouts/_partials/taxonomy/all-categories.html | 14 ++++++++------ layouts/_partials/taxonomy/archived-categories.html | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 layouts/_partials/taxonomy/archived-categories.html (limited to 'layouts/_partials') diff --git a/layouts/_partials/taxonomy/all-categories.html b/layouts/_partials/taxonomy/all-categories.html index 85a228fe..7cb5813a 100644 --- a/layouts/_partials/taxonomy/all-categories.html +++ b/layouts/_partials/taxonomy/all-categories.html @@ -1,29 +1,31 @@ +

* 表示常驻系列,其他系列可能会在完成后停止更新


- {{ range sort .Site.Taxonomies.categories ".Count" "desc" }} + {{ range sort (sort .Site.Taxonomies.categories ".Count" "desc") ".Page.Params.pinned" "desc" }} + {{ if not .Page.Params.archive }}
-

- {{ with .Page.Params.icon }} - {{ . }} - {{ end }} - 《{{ .Page.LinkTitle }}》 +

+ 《{{ .Page.LinkTitle }}》 + {{ if .Page.Params.pinned }}*{{ end }}

{{ .Page.Params.description | markdownify }}


+ {{ end }} {{ end }}
+

查看随笔 → diff --git a/layouts/_partials/taxonomy/archived-categories.html b/layouts/_partials/taxonomy/archived-categories.html new file mode 100644 index 00000000..26ed68d8 --- /dev/null +++ b/layouts/_partials/taxonomy/archived-categories.html @@ -0,0 +1,16 @@ +

+ -- cgit v1.2.3 From 3d689d9dcd7aa9e727e37c899e9bd41a30bb710a Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 8 Mar 2026 12:19:52 +0800 Subject: remove(partial): no longer show unique section categories --- layouts/_partials/section-categories.html | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 layouts/_partials/section-categories.html (limited to 'layouts/_partials') diff --git a/layouts/_partials/section-categories.html b/layouts/_partials/section-categories.html deleted file mode 100644 index 40e6600e..00000000 --- a/layouts/_partials/section-categories.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ $categories := slice }} -{{ range . }} - {{ with .Params.categories }} - {{ if not (in $categories .) }} - {{ $categories = $categories | append . }} - {{ end }} - {{ end }} -{{ end }} - -
- {{ range $categories }} - - {{ . }} - - {{ end }} -
-- cgit v1.2.3 From c09ffa2e5b0db615f4a4614da7d4811616afdf4f Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 8 Mar 2026 12:49:40 +0800 Subject: fix: merge old webmentions after URLs change --- layouts/_partials/posts/action-menu.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'layouts/_partials') diff --git a/layouts/_partials/posts/action-menu.html b/layouts/_partials/posts/action-menu.html index 88bb8f8b..d3544c1f 100644 --- a/layouts/_partials/posts/action-menu.html +++ b/layouts/_partials/posts/action-menu.html @@ -1,4 +1,13 @@ {{ $webmentions := index .Site.Data.webmentions .RelPermalink }} + + +{{ $other_webmentions := index .Site.Data.webmentions (printf "/posts%s" .RelPermalink ) }} +{{ if $other_webmentions }} + {{ $webmentions = $webmentions | union $other_webmentions }} +{{ end }} + {{ $likes := slice }} {{ $replies := slice }} {{ $mentions := slice }} -- cgit v1.2.3