Blog Taxonomies Sidebar Module

On this page

This module shows the taxonomies on the blog’s sidebar.

Modulegithub.com/hbstack/blog/modules/sidebar/taxonomies
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

Site Parameters

ParameterTypeRequiredDefaultDescription
countbooleantrueWhether to show the number of posts associated to the item.
limitnumber10The maximum number of taxonomy items.
separatestringfalseWhether to separate into mutliple sections.
stylestringpillspills, tabs or underline.
[taxonomy]objectParameters for specified taxonomy, such as authors, categories, series and tags.
[taxonomy].countbooleanOverride the count if present.
[taxonomy].disablebooleanfalseWhether to disable this taxonomy.
[taxonomy].limitnumberOverride the limit if present.
[taxonomy].titlestringSpecify another title for this taxonomy.
[taxonomy].weightnumberUsed to sort the taxonomies, lower gets higher priority.

hugo.toml

 1[params]
 2  [params.hb]
 3    [params.hb.blog]
 4      [params.hb.blog.sidebar]
 5        [params.hb.blog.sidebar.taxonomies]
 6          count = true
 7          limit = 10
 8          separate = false
 9          style = 'pills'
10          [params.hb.blog.sidebar.taxonomies.authors]
11            count = false
12            disable = false
13            limit = 5
14            weight = 1
15          [params.hb.blog.sidebar.taxonomies.categories]
16            disable = false
17            weight = 3
18          [params.hb.blog.sidebar.taxonomies.series]
19            disable = false
20            weight = 2
21          [params.hb.blog.sidebar.taxonomies.tags]
22            disable = false
23            limit = 20
24            title = 'Popular Tags'
25            weight = 4

hugo.yaml

 1params:
 2  hb:
 3    blog:
 4      sidebar:
 5        taxonomies:
 6          authors:
 7            count: false
 8            disable: false
 9            limit: 5
10            weight: 1
11          categories:
12            disable: false
13            weight: 3
14          count: true
15          limit: 10
16          separate: false
17          series:
18            disable: false
19            weight: 2
20          style: pills
21          tags:
22            disable: false
23            limit: 20
24            title: Popular Tags
25            weight: 4

hugo.json

 1{
 2   "params": {
 3      "hb": {
 4         "blog": {
 5            "sidebar": {
 6               "taxonomies": {
 7                  "authors": {
 8                     "count": false,
 9                     "disable": false,
10                     "limit": 5,
11                     "weight": 1
12                  },
13                  "categories": {
14                     "disable": false,
15                     "weight": 3
16                  },
17                  "count": true,
18                  "limit": 10,
19                  "separate": false,
20                  "series": {
21                     "disable": false,
22                     "weight": 2
23                  },
24                  "style": "pills",
25                  "tags": {
26                     "disable": false,
27                     "limit": 20,
28                     "title": "Popular Tags",
29                     "weight": 4
30                  }
31               }
32            }
33         }
34      }
35   }
36}