mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
[feature] widget->categories/tags, add <a> tag link to Category/Tags list
This commit is contained in:
parent
ce798a32a9
commit
9b10701ac4
2 changed files with 7 additions and 3 deletions
|
@ -4,7 +4,9 @@
|
|||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "categories" }}
|
||||
</div>
|
||||
<h2 class="widget-title section-title">{{ T "widget.categoriesCloud.title" }}</h2>
|
||||
<h2 class="widget-title section-title">
|
||||
<a href="{{ "categories" | relLangURL }}">{{ T "widget.categoriesCloud.title" }}</a>
|
||||
</h2>
|
||||
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first $limit $context.Site.Taxonomies.categories.ByCount }}
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "tag" }}
|
||||
</div>
|
||||
<h2 class="widget-title section-title">{{ T "widget.tagCloud.title" }}</h2>
|
||||
<h2 class="widget-title section-title">
|
||||
<a href="{{ "tags" | relLangURL }}">{{ T "widget.tagCloud.title" }}</a>
|
||||
</h2>
|
||||
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first $limit $context.Site.Taxonomies.tags.ByCount }}
|
||||
|
@ -13,4 +15,4 @@
|
|||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
|
Loading…
Reference in a new issue