{{- .Scratch.Set "relearnOutputFormat" "HTML" }}
{{- partial "header.html" . }}
{{ if eq .Kind "term" }}{{ .Data.Singular | humanize }} {{ default "::" .Site.Params.titleSeparator }} {{ end }}{{ .Title }}
{{- range .Data.Terms.Alphabetical }}
{{- if and .Page.Title (or (ne (.Page.Scratch.Get "relearnIsHiddenStem") true) (ne .Page.Site.Params.disableTagHiddenPages true) ) }}
- {{ .Page.Title }} ({{ len .Pages }})
{{- end }}
{{- else }}
{{- range sort .Pages "Title" }}
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
- {{ .Title }}
{{- end }}
{{- end }}
{{- end }}
{{- partial "footer.html" . }}