From 5eb799b0ced6a49ebd562c6684876afc2b7f897a Mon Sep 17 00:00:00 2001 From: Rise <8315221+AmazingRise@users.noreply.github.com> Date: Mon, 2 Mar 2020 22:49:30 +0800 Subject: Updated Taxonomies (Categories and Tags) (markdown) --- Taxonomies-(Categories-and-Tags).md | 13 ----------- ...-and-Sections-(Archive,-Categories-and-Tags).md | 26 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 13 deletions(-) delete mode 100644 Taxonomies-(Categories-and-Tags).md create mode 100644 Taxonomies-and-Sections-(Archive,-Categories-and-Tags).md diff --git a/Taxonomies-(Categories-and-Tags).md b/Taxonomies-(Categories-and-Tags).md deleted file mode 100644 index a4aefbb..0000000 --- a/Taxonomies-(Categories-and-Tags).md +++ /dev/null @@ -1,13 +0,0 @@ - -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)** \ No newline at end of file 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 -- cgit v1.2.3