From d6290dcf509c84a38df667813ad3acdcf58c09f5 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 19 Dec 2019 17:22:12 +0100 Subject: #66, add taxonomy support --- layouts/partials/docs/post-meta.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 layouts/partials/docs/post-meta.html (limited to 'layouts/partials/docs/post-meta.html') diff --git a/layouts/partials/docs/post-meta.html b/layouts/partials/docs/post-meta.html new file mode 100644 index 0000000..37b6080 --- /dev/null +++ b/layouts/partials/docs/post-meta.html @@ -0,0 +1,18 @@ +{{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} +{{ if or .Date .Params.tags }} +
+{{ with .Date}} +
{{ .Format $dateFormat }}
+{{ end }} + +{{ range $term, $_ := .Site.Taxonomies }} + {{ with $list := index $.Params $term }} + {{ range $n, $single := $list }}{{ if $n }}, {{ end -}} + {{ $single }} + {{- end }} +
+ {{ end }} +{{ end }} + +
+{{ end }} -- cgit v1.2.3