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:
Jacob Zhong
2023-08-27 18:26:53 +02:00
committed by GitHub
co-authored by Jimmy Cai
parent 5063e8f0b8
commit 4be110e540
33 changed files with 50 additions and 141 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
<div class="section-card">
<div class="section-details">
<h3 class="section-count">{{ T "list.page" (len .Pages) }}</h3>
<h1 class="section-term">{{ .Title }}</h1>
<h1 class="section-term">{{ default (strings.FirstUpper .Type) .Title }}</h1>
{{ with .Params.description }}
<h2 class="section-description">{{ . }}</h2>
{{ end }}