Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Tag-&-Category-Index-or-Taxonomies.md - github.com/AmazingRise/hugo-theme-diary.wiki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ec36e0d4d8e6e18424120780b94b8703a0891d02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Tag & Category Index

This theme originally supports two kind of taxonomy page: tag index and category index.

## How to Add Tag (or Category) Index to the sidebar?
Please edit the `config.toml` in the root directory.

Modify the section `[taxonomies]` as follows.
```
[taxonomies]
   tag = "tags"
   category = "categories"
```
*No more modification.* Then you will see the two index in the sidebar.
(In the mobile view, it's the drawer.)

## How about other taxonomies?
Sure, this theme supports other taxonomies.

You can add it as I said in the previous section.

But different with tag & category, the taxonomy you add will not shown in the top of the post.
It will only shown in the sidebar (or the drawer).