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
+6 -2
View File
@@ -74,16 +74,20 @@ type = "archives"
limit = 5
[[widgets.homepage]]
type = "categories"
type = "taxonomy"
[widgets.homepage.params]
limit = 10
type = "tags"
icon = "tag"
[[widgets.homepage]]
type = "tag-cloud"
type = "taxonomy"
[widgets.homepage.params]
limit = 10
type = "categories"
icon = "categories"
[[widgets.page]]
type = "toc"