diff --git a/layouts/partials/single/collection-list.html b/layouts/partials/single/collection-list.html index 37490dfb..66defcb8 100644 --- a/layouts/partials/single/collection-list.html +++ b/layouts/partials/single/collection-list.html @@ -1,14 +1,14 @@ {{- /* Collection List */ -}} {{- $params := partial "function/params.html" -}} -{{- if .Params.collections | and $params.collectionList | and (not $params.password) -}} +{{- if .Params.collections | and $params.collectionList -}} {{- $collectionTerms := .GetTerms "collections" -}} {{- range $collectionTerms -}} {{- $pages := (where .Pages "Params.Weight" "!=" nil) | append (where .Pages "Params.Weight" "eq" nil).ByDate -}} {{- $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 a340d632..adbf46e6 100644 --- a/layouts/partials/single/collection-nav.html +++ b/layouts/partials/single/collection-nav.html @@ -1,7 +1,7 @@ {{- /* Collection Navigation */ -}} {{- $params := partial "function/params.html" -}} -{{- if .Params.collections | and $params.collectionNavigation | and (not $params.password) -}} +{{- if .Params.collections | and $params.collectionNavigation -}} {{- $collectionTerms := .GetTerms "collections" -}} {{- range $collectionTerms -}} {{- $termLink := printf `%v %v・%v` @@ -10,7 +10,7 @@ (T "collection") .LinkTitle -}} -
+
{{- dict "Collections" $termLink | T "single.includedIn.collections" | strings.FirstUpper | safeHTML }} {{ .Pages.Len -}}