hugo-book/layouts/partials/docs/post-meta.html

15 lines
408 B
HTML

{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }}
{{ with .Date}}
<h5>{{ .Format $dateFormat }}</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>
{{- end }}
</div>
{{ end }}
{{ end }}