aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2025-01-15 00:00:00 +0000
committertdro <tdro@noreply.example.com>2025-01-15 00:00:00 +0000
commitf13bf7214c669523667e1856a4b33570ad44774f (patch)
tree4a9b1eaece0971ec4003aeab33f30a4d3fea1dcc
parent31fc9595c31e81e14e6fc4be77295ae84996b3e7 (diff)
downloadcanory-f13bf7214c669523667e1856a4b33570ad44774f.tar.gz
canory-f13bf7214c669523667e1856a4b33570ad44774f.tar.bz2
canory-f13bf7214c669523667e1856a4b33570ad44774f.zip
themes/default/layouts/partials: Explicit lower title
-rw-r--r--themes/default/layouts/_default/term.html2
-rw-r--r--themes/default/layouts/partials/head-title.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/term.html b/themes/default/layouts/_default/term.html
index 90ba0a1..483da54 100644
--- a/themes/default/layouts/_default/term.html
+++ b/themes/default/layouts/_default/term.html
@@ -11,7 +11,7 @@
"IconLabel" "Back"
"Id" "back"
"Icon" "arrow-left"
- "Title" (print "#" .Title)
+ "Title" (print "#" (lower .Title))
"Subtitle" (print (lang.FormatNumberCustom 0 (len .Data.Pages)) " " "Total")
"Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | relURL)) ("" | relURL))
)
diff --git a/themes/default/layouts/partials/head-title.html b/themes/default/layouts/partials/head-title.html
index fff4530..c7da2e8 100644
--- a/themes/default/layouts/partials/head-title.html
+++ b/themes/default/layouts/partials/head-title.html
@@ -2,6 +2,9 @@
{{- if not (eq .Title $.Site.Title) -}}
{{- with $title := or .Title .Summary -}}
+ {{- with (eq $.Page.Kind "term") -}}
+ {{- $title = print "#" (lower $title) -}}
+ {{- end -}}
{{ $title }} &mdash;
{{ end }}
{{- end -}}