first commit

This commit is contained in:
selene 2026-02-14 23:03:08 +01:00
commit 384567df50
Signed by: sel
SSH key fingerprint: SHA256:33R/4Rx5Lu4o81LyJyXdMrmP5CJ6j7j1Soo0Dn7mKc0
44 changed files with 501 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{{- /*
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 }}
<section>
<p>{{ $label }}:
{{- range . }}
<a href="{{ .RelPermalink }}">#{{ .LinkTitle }}</a>
{{- end }}
</p>
</section>
{{- end }}