From aa1709fbdd05527bc64f3e786b0bd3afed9ae67a Mon Sep 17 00:00:00 2001
From: Cell <1024@lruihao.cn>
Date: Fri, 15 Nov 2024 14:24:08 +0800
Subject: [PATCH] :wheelchair: Feat: always show collection list and navigation
---
layouts/partials/init/index.html | 2 +-
layouts/partials/single/collection-list.html | 2 +-
layouts/partials/single/collection-nav.html | 2 +-
layouts/posts/single.html | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html
index 64cfbd64..3e030dce 100644
--- a/layouts/partials/init/index.html
+++ b/layouts/partials/init/index.html
@@ -1,4 +1,4 @@
-{{- .Scratch.Set "version" "v0.3.15" -}}
+{{- .Scratch.Set "version" "v0.3.16-fcb0f1ef" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
diff --git a/layouts/partials/single/collection-list.html b/layouts/partials/single/collection-list.html
index 2f0694f2..38d323f9 100644
--- a/layouts/partials/single/collection-list.html
+++ b/layouts/partials/single/collection-list.html
@@ -8,7 +8,7 @@
{{- $open := eq (index $collectionTerms 0) . -}}
{{- $currentKey := 0 -}}
-
+
{{ dict "Class" "fa-solid fa-layer-group fa-fw" | partial "plugin/icon.html" }}
{{ .LinkTitle }}
diff --git a/layouts/partials/single/collection-nav.html b/layouts/partials/single/collection-nav.html
index 2754a5fd..5c63d85e 100644
--- a/layouts/partials/single/collection-nav.html
+++ b/layouts/partials/single/collection-nav.html
@@ -10,7 +10,7 @@
(T "collection")
.LinkTitle
-}}
-
+
{{- dict "Collections" $termLink | T "single.includedIn.collections" | strings.FirstUpper | safeHTML }} {{ .Pages.Len -}}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 5e5509ff..b2592a39 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -178,12 +178,12 @@
{{- partial "single/reward.html" . -}}
{{- end -}}
- {{- /* Collection Navigation */ -}}
- {{- partial "single/collection-nav.html" . -}}
-
{{- /* Content Encryption */ -}}
{{- dict "Content" $content "Password" $params.password "Message" $params.message | partial "plugin/fixit-encryptor.html" -}}
+ {{- /* Collection Navigation */ -}}
+ {{- partial "single/collection-nav.html" . -}}
+
{{- /* Custom block before post footer */ -}}
{{- block "custom-post__footer:before" . }}{{ end -}}