Gefixte Links bei Cloud und Taglist
This commit is contained in:
parent
a79492da55
commit
533d7f2e46
2 changed files with 20 additions and 20 deletions
|
@ -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) }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<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>
|
||||
|
|
Loading…
Reference in a new issue