Import theme

This commit is contained in:
DuN0z 2025-10-09 10:23:36 +02:00
parent 51769fa6be
commit c59ffbfeee
127 changed files with 13611 additions and 1 deletions

View file

@ -0,0 +1 @@
{{ partial "taxonomy/template.html" (dict "items" . "linkClass" "category" "linkBase" "categories") }}

View file

@ -0,0 +1 @@
{{ partial "taxonomy/template.html" (dict "items" . "linkClass" "tag" "linkBase" "tags") }}

View file

@ -0,0 +1,13 @@
{{- $linkClass := .linkClass -}}
{{- $linkBase := .linkBase -}}
<span>
{{- range $index, $el := .items -}}
<!-- Replace certain special characters with their URL encoded counterparts -->
{{- $item := replace . "#" "%23" -}}
{{- $item = replace $item "." "%2e" -}}
{{- $link := ( printf "%s/%s/" $linkBase ( $item | urlize ) ) | relLangURL -}}
<a class="{{ $linkClass }}" href="{{ $link }}">{{- . -}}</a>
{{- end -}}
</span>