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

Taxonomies-and-Sections-(Archive,-Categories-and-Tags).md - github.com/AmazingRise/hugo-theme-diary.wiki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1ac007061f53c45254622a2641495d06f7170a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Taxonomies

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

Please edit the `config.toml` in the root directory.

Modify the section `[taxonomies]` as follows.
```
[taxonomies]
   tag = "tags"
   category = "categories"
```

**You should add them to sidebar manully. Please see [Customize sidebar](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#customize-sidebar)**

## Archive Page

Hugo implement this function as `Section`.
To visit archive page, you can directly navigate to `http://your-site/posts`
Add these to your `config.toml` in order to see `Archive` on the sidebar:
```toml
[[menu.main]]
url = "/posts"
name = "Archive"
weight = 1
```