diff options
-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" |