From 4f83f002ad78ae3612df232bdb355859a25a6052 Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sat, 27 Sep 2025 13:23:42 +0200 Subject: fix tag display in blog --- layouts/partials/docs/date.html | 6 ++++++ layouts/partials/docs/post-meta.html | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 layouts/partials/docs/date.html create mode 100644 layouts/partials/docs/post-meta.html (limited to 'layouts/partials') diff --git a/layouts/partials/docs/date.html b/layouts/partials/docs/date.html new file mode 100644 index 0000000..d33cdbe --- /dev/null +++ b/layouts/partials/docs/date.html @@ -0,0 +1,6 @@ + +{{- $format := default "January 2, 2006" .Format -}} +{{- return (time.Format $format .Date | lower ) -}} diff --git a/layouts/partials/docs/post-meta.html b/layouts/partials/docs/post-meta.html new file mode 100644 index 0000000..f111ce8 --- /dev/null +++ b/layouts/partials/docs/post-meta.html @@ -0,0 +1,16 @@ +{{ with .Date }} +
+ + {{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }} +
+{{ end }} + +{{ range $taxonomy, $_ := .Site.Taxonomies }} + {{ with $terms := $.GetTerms $taxonomy }} +
+ {{ range $n, $term := $terms }}{{ if $n }}, {{ end }} + {{ $term.Title | lower }} + {{- end }} +
+ {{ end }} +{{ end }} -- cgit v1.2.3