diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-01-24 00:07:47 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-01-24 00:07:56 +0100 |
commit | ba5d38ad4427bcda21a4cc57689464ed58d8b9a0 (patch) | |
tree | 12964eb240f749baa7276369265c89a04765d14e /layouts/partials/docs/post-meta.html | |
parent | 2acd6ab280390057bf6d68a801a1be0f09dbd0b9 (diff) |
Rework of main template, adds options for more fine customisation
Diffstat (limited to 'layouts/partials/docs/post-meta.html')
-rw-r--r-- | layouts/partials/docs/post-meta.html | 6 |
1 files changed, 3 insertions, 3 deletions
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 }} <div> {{ with .Date}} @@ -6,10 +6,10 @@ {{ end }} {{ range $term, $_ := .Site.Taxonomies }} - {{ with $list := index $.Params $term }} + {{ with $list := $.Param $term }} <div> {{ 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) }} <a href="{{ .RelPermalink }}">{{ .Title }}</a> {{- end }} {{- end }} |