mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
feat(tag cloud): add support for custom taxonomy link
This commit is contained in:
parent
d292727821
commit
b2a1afd744
1 changed files with 4 additions and 3 deletions
|
@ -8,9 +8,10 @@
|
|||
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first .Site.Params.widgets.tagCloud.limit $tags }}
|
||||
<a href="{{ printf `tags/%s` (.Term | urlize) | relLangURL }}" class="font_size_{{ .Count }}">
|
||||
{{ .Term | humanize }}
|
||||
</a>
|
||||
{{ $term := $.Site.GetPage (printf "/tags/%s" .Term) }}
|
||||
<a href="{{ $term.Permalink }}" class="font_size_{{ .Count }}">
|
||||
{{ $term.Title | humanize }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
Loading…
Reference in a new issue