diff options
author | de-souza <43355143+de-souza@users.noreply.github.com> | 2020-03-07 15:40:19 +0300 |
---|---|---|
committer | de-souza <43355143+de-souza@users.noreply.github.com> | 2020-03-07 15:40:19 +0300 |
commit | 561c9e332f28fd64c862abfb63d8e49aae751977 (patch) | |
tree | fa580b032ff255cd14f9824a0b62ce942e8f66ed | |
parent | 0089963433c1f32052662012402d1037915e498d (diff) |
Use new .GetTerms method
-rw-r--r-- | layouts/partials/tags.html | 6 | ||||
-rw-r--r-- | theme.toml | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html index 70e50f0..ee7a014 100644 --- a/layouts/partials/tags.html +++ b/layouts/partials/tags.html @@ -7,13 +7,11 @@ {{ range $taxonomy := $taxonomies }} {{ if isset $.Params $taxonomy }} <ul class="Tags"> - {{ range $term := index $.Params $taxonomy }} - {{ with $term | urlize | printf "/%s/%s" $taxonomy | site.GetPage }} + {{ range $.GetTerms $taxonomy }} <li class="Tags-item u-background"> - <a class="Tags-link u-clickable" href="{{ .Permalink }}" rel="tag">{{ $term }}</a> + <a class="Tags-link u-clickable" href="{{ .Permalink }}" rel="tag">{{ .LinkTitle }}</a> </li> {{ end }} - {{ end }} </ul> {{ end }} {{ end }} @@ -5,7 +5,7 @@ description = "A lightweight Hugo theme leveraging CSS Flexbox" homepage = "https://github.com/de-souza/hugo-flex/" tags = ["responsive", "minimal", "flexbox", "no-javascript"] features = ["posts"] -min_version = "0.57.2" +min_version = "0.65" [author] name = "Léo De Souza" |