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

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorde-souza <43355143+de-souza@users.noreply.github.com>2020-03-07 15:40:19 +0300
committerde-souza <43355143+de-souza@users.noreply.github.com>2020-03-07 15:40:19 +0300
commit561c9e332f28fd64c862abfb63d8e49aae751977 (patch)
treefa580b032ff255cd14f9824a0b62ce942e8f66ed
parent0089963433c1f32052662012402d1037915e498d (diff)
Use new .GetTerms method
-rw-r--r--layouts/partials/tags.html6
-rw-r--r--theme.toml2
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 }}
diff --git a/theme.toml b/theme.toml
index bf96b0a..0fa70e7 100644
--- a/theme.toml
+++ b/theme.toml
@@ -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"