{{- partialCached "page-meta.hugo" . .RelPermalink }} {{- partial "header.html" . }}
{{- $page := . }} {{- $title := i18n .Data.Plural }} {{- if not $title }} {{- $title = .Data.Plural }} {{- end }}

{{ $title }}

{{- $lastCapital := "" }} {{- $terms := slice }} {{- range .Data.Terms }} {{- $terms = $terms | append (dict "Title" (default .Page.Data.Term .Page.Title) "Term" . )}} {{- if not .Page.Title }} {{- warnf "%q: You have not given a 'title' in the frontmatter of your term page, the urlized title will be used instead" .Page.File.Filename }} {{- end }} {{- end }} {{- range sort $terms ".Title" }} {{- $capital := substr .Title 0 1 | upper }} {{- $len := 0 }} {{- range .Term.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 }} {{- if ne $lastCapital $capital }} {{- if ne $lastCapital "" }} {{- end }}

{{ $capital }}

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