{{ $type := .type }} {{ range .pages }} {{ .Page.Title }} {{ if eq $type "tags"}}{{ .Count }}{{ end }} {{ end }}