From 6819ff0c1ef96bb6918a3696d492a8e644140744 Mon Sep 17 00:00:00 2001 From: Vincent Tam Date: Thu, 1 Aug 2019 00:57:41 +0200 Subject: Updated taxonomy template with Hugo v0.55 syntax https://gohugo.io/templates/taxonomy-templates/#order-alphabetically-example --- layouts/_default/terms.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 6c2638c..1b7e2b1 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -5,9 +5,10 @@
- {{ $data := .Data }} - {{- range $key, $value := .Data.Terms -}} - {{ $key }} ({{ len $value }}) - {{ end }} +

+ {{ range .Data.Terms.Alphabetical -}} + {{ .Page.Title }} ({{ .Count }}) + {{ end -}} +

{{ end }} -- cgit v1.2.3