summaryrefslogtreecommitdiff
path: root/layouts/partials/docs/post-meta.html
blob: a1299445aca2b9fc45c0dd85d89c7d9ca5f5ea94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }}
{{ if or .Date .Params.tags }}
<div>
{{ with .Date}}
  <h5>{{ .Format $dateFormat }}</h5>
{{ end }}

{{ range $term, $_ := .Site.Taxonomies }}
  {{ with $list := index $.Params $term }}
    {{ range $n, $single := $list }}{{ if $n }}, {{ end }}
      {{ with $.Site.GetPage (printf "/%s/%s" $term $single) }}
        <a href="{{ .RelPermalink }}">{{ $single }}</a>
      {{- end }}
    {{- end }}
    <br />
  {{ end }}
{{ end }}

</div>
{{ end }}