Feat: always show collection list and navigation

This commit is contained in:
Cell
2024-11-15 14:24:08 +08:00
parent fcb0f1efd5
commit aa1709fbdd
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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" . -}}
+1 -1
View File
@@ -8,7 +8,7 @@
{{- $open := eq (index $collectionTerms 0) . -}}
{{- $currentKey := 0 -}}
<div class="details collection-details{{ with $params.password }} encrypted-hidden{{ end }}{{ if $open }} open{{ end }}">
<div class="details collection-details{{ if $open }} open{{ end }}">
<div class="details-summary collection-summary">
{{ dict "Class" "fa-solid fa-layer-group fa-fw" | partial "plugin/icon.html" }}
<span class="collection-name" data-collections="{{ T "collections" }}">{{ .LinkTitle }}</span>
+1 -1
View File
@@ -10,7 +10,7 @@
(T "collection")
.LinkTitle
-}}
<div class="collection-card{{ with $params.password }} encrypted-hidden{{ end }}">
<div class="collection-card">
<div class="collection-title text-secondary">
{{- dict "Collections" $termLink | T "single.includedIn.collections" | strings.FirstUpper | safeHTML }} {{ .Pages.Len -}}
</div>
+3 -3
View File
@@ -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 -}}