{{- partialCached "page-meta.hugo" . .RelPermalink }} {{- partial "header.html" . }}
{{- $page := . }} {{- $title := default (default .Data.Plural (i18n .Data.Plural)) .Title }}

{{ $title }}

{{- .Content }} {{- $lastCapital := "" }} {{- $pages := slice }} {{- range .Data.Terms }} {{- $len := 0 }} {{- range .Pages }} {{- $c:=""}}{{/* count pages of term */}} {{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }} {{- $len = add $len 1 }} {{- end }} {{- end }} {{- if $len }} {{- $pages = $pages| append (dict "Title" (default .Page.Data.Term .Page.Title) "Page" . "Len" $len )}} {{- end }} {{- end }} {{- range sort $pages ".Title" }} {{- $capital := substr .Title 0 1 | upper }} {{- if ne $lastCapital $capital }} {{- if ne $lastCapital "" }} {{- end }}

{{ $capital }}

{{- end }}
{{- partial "footer.html" . }}