Gefixte Links bei Cloud und Taglist

This commit is contained in:
mdn 2022-11-28 20:17:13 +01:00
parent a79492da55
commit 533d7f2e46
2 changed files with 20 additions and 20 deletions

View file

@ -1,5 +1,5 @@
<div class="tag-cloud d-inline-block m-0 p-0">
{{ $parentLink := ($.Params.Site.GetPage (printf "/%s" .ident)).Permalink }}
{{ $parentLink := (site.GetPage (printf "/%s" .ident)).Permalink }}
{{ $maxCnt := mul 1.0 (index .tax.ByCount 0).Count }}
{{ $minCnt := mul 1.0 (index .tax.ByCount.Reverse 0).Count }}
{{ $div := math.Max 1 (sub $maxCnt $minCnt) }}

View file

@ -1,9 +1,9 @@
<div class="categories mb-2 d-inline-block">
{{ $parentLink := ($.Params.Site.GetPage (printf "/%s" .ident)).Permalink }}
{{ $parentLink := (site.GetPage (printf "/%s" .ident)).Permalink }}
{{ range $key, $sites := .tax }}
<div class="m-1 d-inline-flex">
<a class="bg-dark text-white py-1 px-2 m-0 rounded-start" href="{{ (printf "%s%s" $parentLink $key) | relURL }}">{{ $key }}</a>
<div class="bg-danger text-white py-1 px-2 m-0 rounded-end">{{ $sites.Count }}</div>
</div>
{{ end }}
</div>
</div>