Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tags.html « partials « layouts - github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d56540f3c8299873eb62d458459b686b7d957e22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ $taxonomies := slice }}
{{ range $taxonomy, $pages := site.Taxonomies }}
{{ $taxonomies = $taxonomies | append $taxonomy }}
{{ end }}
{{ if true | in (apply $taxonomies "isset" .Params ".") }}
<footer>
  {{ range $taxonomy := $taxonomies }}
  {{ 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 }}