{{- /* metadata-taxonomy.html (partial): Displays category and tag links sourced from the page's frontmatter. Features: - Displays a link for the first term from the 'categories' taxonomy. - Displays links for all terms from the 'tags' taxonomy. Repo: https://github.com/oxypteros/alpha */ -}} {{ $categories := .GetTerms "categories" }} {{- $tags := .GetTerms "tags" }} {{- if $categories }}
{{- range first 1 $categories }} {{ .LinkTitle }} {{- end }}
{{- else }} {{- /* Render an empty div if no categories to maintain layout consistency. */ -}}
{{- end }} {{- if $tags }}
{{- range $tags }} {{ .LinkTitle }} {{- end }}
{{- end }}