{{- $page := .page }} {{- with $page.GetTerms "categories" }} {{- if . }} {{- $label := (index . 0).Parent.LinkTitle }}