{{ $title := .Title }}
{{ $section := .Section | humanize }}
{{ if and (ne $section $title) (ne $section "Tags") (ne $title (printf "%ss" $section)) }}
{{ $section }}:
{{ end }}
{{ if and (eq $section "Tags") (eq $section $title) }}
{{ i18n "tagsColumn" }}
{{ else }}
{{ if and (eq $section "Tags") (ne $section $title) }}{{ i18n "tagColumn" }} #{{ end }}{{ $title }}
{{ end }}
{{ if and (eq $section "Tags") (eq $section $title) }}
{{/* if we're in the Tags section, sort alphabetically and don't show the date */}}
{{ range (sort .Pages "Title") }}
-
#{{ .Title }}
{{ end }}
{{ else }}
{{ range .Pages }}
-
{{ end }}
{{ end }}