[feature] widget->categories/tags, add <a> tag link to Category/Tags list

This commit is contained in:
mahone3297 2024-06-03 09:32:46 +08:00
parent ce798a32a9
commit 9b10701ac4
2 changed files with 7 additions and 3 deletions

View file

@ -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 }}

View file

@ -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>