working with absLangUrl

This commit is contained in:
Stephan Hadan 2025-02-11 14:36:07 +01:00
parent e73a41f1c8
commit 60c07663de

View file

@ -13,7 +13,7 @@
<div class="postmeta">Geschrieben am <time datetime='{{ .Date | time.Format ":date_long" }}' pubdate="">{{ .Date | time.Format ":date_long" }}</time> in
<span class="categories">
{{ range $i, $v := .Params.categories }}
<a class="category" href="{{ relLangURL }}categories/{{ $v | urlize }}">{{ $v }}</a>{{ if ne (len $.Params.categories) (add $i 1) }}, {{ end }}
<a class="category" href="{{ absLangURL 'categories' }}/{{ $v | urlize }}">{{ $v }}</a>{{ if ne (len $.Params.categories) (add $i 1) }}, {{ end }}
{{ end }}
</span>
</div>