From 8927a3c672a6e7a40519626b7df31d7dace800a9 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 10 Apr 2020 20:24:36 +0200 Subject: #162, Add docs/date partial, for date customization --- layouts/partials/docs/post-meta.html | 5 ++--- 1 file changed, 2 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 70adb0b..c56a528 100644 --- a/layouts/partials/docs/post-meta.html +++ b/layouts/partials/docs/post-meta.html @@ -1,13 +1,12 @@ -{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }} {{ with .Date}} -
{{ .Format $dateFormat }}
+
{{ 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 }} + {{ $term.Title }} {{- end }}
{{ end }} -- cgit v1.2.3