First try at a HUGO theme for phiax.nl

This commit is contained in:
Frank "PHiAX" Weggelaar 2026-01-24 20:28:16 +01:00
commit 4d1ddd22ed
13 changed files with 342 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{{- /*
For a given taxonomy, renders a list of terms assigned to the page.
@context {page} page The current page.
@context {string} taxonomy The taxonomy.
@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
*/}}
{{- $page := .page }}
{{- $taxonomy := .taxonomy }}
{{- with $page.GetTerms $taxonomy }}
{{- $label := (index . 0).Parent.LinkTitle }}
{{- range . }}
<div class="article-end-ribbon">Tags: <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></div>
{{- end }}
{{- end }}