{{- $format := .Format -}} {{- $pageContext := .Context -}} {{- $path := "tags/" -}} {{- $url := $path | absURL -}} {{- with $pageContext.Params.tags -}} {{- range $tags, $tag := sort $pageContext.Params.tags -}} {{- $link := print $url ((lower $tag) | urlize) "/" -}} {{- print "[#" (lower $tag) "](" $link ")" | markdownify -}} {{- if (eq $format "rss") -}} {{- end }} {{ end -}} {{- else -}} {{- if (eq $format "rss") -}} {{- $path = "/tags" -}} {{- else }} {{- $path = "tags" -}} {{- end }} #untagged {{- end -}}