From 9b8db59969da3548104d74a98a283b7e901f2fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 23 Feb 2022 15:04:12 +0100 Subject: [PATCH] tags: sort by name #193 --- layouts/_default/list.html | 15 ++++++++------- layouts/_default/single.html | 5 ----- layouts/partials/footer.html | 5 +++++ layouts/partials/header.html | 2 +- layouts/partials/tags.html | 2 +- 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e9953d5db40..bff282b30f3 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,16 +5,17 @@ {{- end }} {{- if or (eq .Kind "taxonomy") (eq .Kind "term") }} {{- end }} - {{- partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 62c9d81fac9..3ae3b293973 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,4 @@ {{- partial "header.html" . }} {{ partial "content.html" . }} - {{- partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 044c86c1499..31ee641bed0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,8 @@ + {{- if .Params.chapter }} {{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 77f34a4d696..98c458c63c7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -104,7 +104,7 @@ {{- partial "tags.html" . }} {{- if and (not .IsHome) (not .Params.chapter) }} -

{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}

+

{{ if eq .Kind "term" }}{{ .Data.Singular | humanize }} :: {{ end }}{{ .Title }}

{{- end }} {{- define "breadcrumb" }} diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html index e61be76107e..74cdc732df4 100644 --- a/layouts/partials/tags.html +++ b/layouts/partials/tags.html @@ -1,7 +1,7 @@ {{- if .Params.tags }}
-{{- range .Params.tags }} +{{- range sort .Params.tags }} {{ . }} {{- end }}