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: 70e50f0bfc3b36d676b3fc12b16ffeadb6b9d1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ $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 $term := index $.Params $taxonomy }}
    {{ with $term | urlize | printf "/%s/%s" $taxonomy | site.GetPage }}
    <li class="Tags-item u-background">
      <a class="Tags-link u-clickable" href="{{ .Permalink }}" rel="tag">{{ $term }}</a>
    </li>
    {{ end }}
    {{ end }}
  </ul>
  {{ end }}
  {{ end }}
</footer>
{{ end }}