refactor(widget): taxonomy widget (#763)
* Add link to navbar sections and refactor names
* Prevent duplicate tags and categories information
* Add style to the widget links
* refactor: add `taxonomy` widget
Replaces `categories` and `tag-cloud` widget.
* style: remove unused `font_size_{{ .Count }}` in `taxonomy` widget
---------
Co-authored-by: Jimmy Cai <hi@jimmycai.com>
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "infinity" }}
|
||||
</div>
|
||||
<h2 class="widget-title section-title">{{ T "widget.archives.title" }}</h2>
|
||||
<h2 class="widget-title section-title">
|
||||
<a class="widget-link" href="{{ $archivesPage.RelPermalink }}">{{ T "widget.archives.title" }}</a>
|
||||
</h2>
|
||||
|
||||
{{ $pages := where $context.Site.RegularPages "Type" "in" $context.Site.Params.mainSections }}
|
||||
{{ $archives := $pages.GroupByDate "2006" }}
|
||||
|
||||
Reference in New Issue
Block a user