aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/post-meta.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-04-10 20:24:36 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-04-10 20:24:36 +0200
commit8927a3c672a6e7a40519626b7df31d7dace800a9 (patch)
treea67d6be6bf06c87f1abe50b29ca6b4580e0a96a8 /layouts/partials/docs/post-meta.html
parent6234f1265497cdce9cbaa0ebf0c06137aed9fdca (diff)
#162, Add docs/date partial, for date customization
Diffstat (limited to 'layouts/partials/docs/post-meta.html')
-rw-r--r--layouts/partials/docs/post-meta.html5
1 files changed, 2 insertions, 3 deletions
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}}
- <h5>{{ .Format $dateFormat }}</h5>
+ <h5>{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}</h5>
{{ end }}
{{ range $taxonomy, $_ := .Site.Taxonomies }}
{{ with $terms := $.GetTerms $taxonomy }}
<div>
{{ range $n, $term := $terms }}{{ if $n }}, {{ end }}
- <a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a>
+ <a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a>
{{- end }}
</div>
{{ end }}