blob: 1b114a292a8d320168dc717487ba971baaa3c10e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{{ $taxonomy_list := slice }}
{{ range $taxonomy, $pages := site.Taxonomies }}
{{ $taxonomy_list = $taxonomy_list | append $taxonomy }}
{{ end }}
{{ $taxonomy_is_used_list := apply $taxonomy_list "isset" .Params "." }}
{{ if true | in $taxonomy_is_used_list }}
<footer>
{{ range $taxonomy := $taxonomy_list }}
{{ if isset $.Params $taxonomy }}
<ul class="Tags">
{{ range $.GetTerms $taxonomy }}
<li class="Tags-item u-background">
<a class="Tags-link u-clickable" href="{{ .RelPermalink }}" rel="tag">{{ .LinkTitle }}</a>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</footer>
{{ end }}
|