{{- $page := .page }}
{{- $taxonomy := .taxonomy }}

{{- with $page.GetTerms $taxonomy }}
  {{- $label := (index . 0).Parent.LinkTitle }}
      {{- range . }}
        <a class="badge text-bg-secondary" href="{{ .RelPermalink }}">
          {{ .LinkTitle }}
        </a>&nbsp;
      {{- end }}
{{- end }}