From a852f0e8ceb6f802f7473583e623bdd05d3e652c Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sun, 9 Aug 2020 11:46:13 +0000 Subject: [PATCH] feat: add tag index page - https://github.com/hexojs/hexo-generator-tag/pull/44 --- _config.yml | 2 ++ themes/chameleon/layout/tag-index.ejs | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 themes/chameleon/layout/tag-index.ejs diff --git a/_config.yml b/_config.yml index f3dda97d..7f0b1d67 100644 --- a/_config.yml +++ b/_config.yml @@ -24,6 +24,8 @@ pretty_urls: source_dir: source public_dir: public tag_dir: tags +tag_generator: + enable_index_page: true archive_dir: blog category_dir: categories code_dir: '' diff --git a/themes/chameleon/layout/tag-index.ejs b/themes/chameleon/layout/tag-index.ejs new file mode 100644 index 00000000..92659619 --- /dev/null +++ b/themes/chameleon/layout/tag-index.ejs @@ -0,0 +1,10 @@ +
+ <%- partial('_partial/header', {}, { cache: true }) %> +
+

Tags:

+ <%- list_tags({ + amount: 0, + class: 'index', + transform: titlecase + }) %> +