aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/post-meta.html
blob: b1cca0ab1ebc2ff745945b26c374fd2e18cebffb (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="{{ . }}">{{ $single }}</a>
      {{- end }}
    {{- end }}
    <br />
  {{ end }}
{{ end }}

</div>
{{ end }}