+
+ {{range $name, $taxonomy := .Site.Taxonomies.tags}}
+ {{ $cnt := .Count }}
+ {{ with $.Site.GetPage (printf "/tags/%s" $name) }}
+ {{ $firstChar := substr $name 0 1 | upper }}
+ {{ $curLetter := $.Scratch.Get "curLetter" }}
-
- {{ $letters := split "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "" }}
+ {{ if ne $firstChar $curLetter }}
+ {{ if ne $curLetter "" }}
+
+
+ {{ end }}
+ {{ $.Scratch.Set "curLetter" $firstChar }}
+
+
{{ $firstChar }}
+
+ {{ end }}
-
- {{ range .Data.Pages.ByTitle }}
-
- {{ $firstChar := substr .Title 0 1 | upper }}
-
-
- {{ if $firstChar | in $letters }}
-
- {{ $curLetter := $.Scratch.Get "curLetter" }}
-
- {{ if ne $firstChar $curLetter }}
-
-
- {{ $.Scratch.Set "curLetter" $firstChar }}
-
-
{{ $firstChar }}
-
-
-
{{ partial "footer" . }}