Skip to content

Commit

Permalink
♿ Feat: always show collection list and navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Nov 15, 2024
1 parent fcb0f1e commit aa1709f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -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" . -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/single/collection-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/single/collection-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ <h1 class="single-title animate__animated animate__flipInX">
{{- 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 -}}

Expand Down

0 comments on commit aa1709f

Please sign in to comment.