feat(tag cloud): add support for custom taxonomy link
This commit is contained in:
parent
d292727821
commit
b2a1afd744
@ -8,9 +8,10 @@
|
|||||||
|
|
||||||
<div class="tagCloud-tags">
|
<div class="tagCloud-tags">
|
||||||
{{ range first .Site.Params.widgets.tagCloud.limit $tags }}
|
{{ range first .Site.Params.widgets.tagCloud.limit $tags }}
|
||||||
<a href="{{ printf `tags/%s` (.Term | urlize) | relLangURL }}" class="font_size_{{ .Count }}">
|
{{ $term := $.Site.GetPage (printf "/tags/%s" .Term) }}
|
||||||
{{ .Term | humanize }}
|
<a href="{{ $term.Permalink }}" class="font_size_{{ .Count }}">
|
||||||
</a>
|
{{ $term.Title | humanize }}
|
||||||
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
Loading…
Reference in New Issue
Block a user