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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user