Skip to content

Commit

Permalink
Use new .GetTerms method
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeso committed Mar 7, 2020
1 parent 0089963 commit 561c9e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions layouts/partials/tags.html
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Expand Up @@ -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"
Expand Down

0 comments on commit 561c9e3

Please sign in to comment.