From ba5d38ad4427bcda21a4cc57689464ed58d8b9a0 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 24 Jan 2020 00:07:47 +0100 Subject: Rework of main template, adds options for more fine customisation --- layouts/partials/docs/post-meta.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'layouts/partials/docs/post-meta.html') diff --git a/layouts/partials/docs/post-meta.html b/layouts/partials/docs/post-meta.html index 41221c7..c68ea95 100644 --- a/layouts/partials/docs/post-meta.html +++ b/layouts/partials/docs/post-meta.html @@ -1,4 +1,4 @@ -{{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} +{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }} {{ if or .Date .Params.tags }}
{{ with .Date}} @@ -6,10 +6,10 @@ {{ end }} {{ range $term, $_ := .Site.Taxonomies }} - {{ with $list := index $.Params $term }} + {{ with $list := $.Param $term }}
{{ range $n, $single := $list }}{{ if $n }}, {{ end }} - {{ with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }} + {{- with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }} {{ .Title }} {{- end }} {{- end }} -- cgit v1.2.3