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

github.com/AmazingRise/hugo-theme-diary.wiki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Taxonomies-and-Sections-(Archive,-Categories-and-Tags).md')
-rw-r--r--Taxonomies-and-Sections-(Archive,-Categories-and-Tags).md26
1 files changed, 26 insertions, 0 deletions
diff --git a/Taxonomies-and-Sections-(Archive,-Categories-and-Tags).md b/Taxonomies-and-Sections-(Archive,-Categories-and-Tags).md
new file mode 100644
index 0000000..d1ac007
--- /dev/null
+++ b/Taxonomies-and-Sections-(Archive,-Categories-and-Tags).md
@@ -0,0 +1,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
+``` \ No newline at end of file