diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 215168b7..22d14e6b 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -55,14 +55,12 @@ {{- /* Footer */ -}}
{{ T "single.readMore" }} - {{- with .Params.tags -}} + {{- $tagTerms := .GetTerms "tags" -}} + {{- if $tagTerms -}}
{{- dict "Class" "fa-solid fa-tags fa-fw me-1" | partial "plugin/icon.html" -}} - {{- range $value := . -}} - {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}} - {{- with $tag -}} - - {{- end -}} + {{- range $tagTerms -}} + {{- end -}}
{{- end -}} diff --git a/layouts/partials/single/collection-nav.html b/layouts/partials/single/collection-nav.html index 68e5bac8..c4ddfaa1 100644 --- a/layouts/partials/single/collection-nav.html +++ b/layouts/partials/single/collection-nav.html @@ -5,7 +5,7 @@ {{- $collectionTerms := .GetTerms "collections" -}} {{- range $collectionTerms -}} {{- $termLink := printf `%v %v・%v` - .RelPermalink + (partial "function/escapeurl.html" .RelPermalink) (dict "Class" "fa-solid fa-layer-group fa-fw" | partial "plugin/icon.html") (T "collection") .LinkTitle diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index 0c3aee0c..b41558ce 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -58,13 +58,11 @@
diff --git a/layouts/partials/single/post-included-in.html b/layouts/partials/single/post-included-in.html index 3183e148..1dfbb108 100644 --- a/layouts/partials/single/post-included-in.html +++ b/layouts/partials/single/post-included-in.html @@ -1,25 +1,23 @@ {{- $categories := slice -}} -{{- range .Params.categories -}} - {{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}} +{{- range .GetTerms "categories" -}} {{- $categories = $categories | append ( printf `` - (partial "function/escapeurl.html" $category.RelPermalink) - (printf "%v - %v" (T "category") $category.LinkTitle) + (partial "function/escapeurl.html" .RelPermalink) + (printf "%v - %v" (T "category") .LinkTitle) (dict "Class" "fa-regular fa-folder fa-fw" | partial "plugin/icon.html") - $category.LinkTitle + .LinkTitle ) -}} {{- end -}} {{- $categoriesStr := delimit $categories " " -}} {{- $collections := slice -}} -{{- range .Params.collections -}} - {{- $collection := partialCached "function/path.html" . . | printf "/collections/%v" | $.Site.GetPage -}} +{{- range .GetTerms "collections" -}} {{- $collections = $collections | append ( printf `%v %v` - (partial "function/escapeurl.html" $collection.RelPermalink) - (printf "%v - %v" (T "collection") $collection.LinkTitle) + (partial "function/escapeurl.html" .RelPermalink) + (printf "%v - %v" (T "collection") .LinkTitle) (dict "Class" "fa-solid fa-layer-group fa-fw" | partial "plugin/icon.html") - $collection.LinkTitle + .LinkTitle ) -}} {{- end -}} {{- $collectionStr := delimit $collections " " -}}