feat: add tag index page

- https://github.com/hexojs/hexo-generator-tag/pull/44
This commit is contained in:
MDLeom 2020-08-09 11:46:13 +00:00
parent 97d59bb2c7
commit a852f0e8ce
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,8 @@ pretty_urls:
source_dir: source source_dir: source
public_dir: public public_dir: public
tag_dir: tags tag_dir: tags
tag_generator:
enable_index_page: true
archive_dir: blog archive_dir: blog
category_dir: categories category_dir: categories
code_dir: '' code_dir: ''

View File

@ -0,0 +1,10 @@
<div class="archive-container">
<%- partial('_partial/header', {}, { cache: true }) %>
<hr class="header-hr"/>
<h2>Tags:</h2>
<%- list_tags({
amount: 0,
class: 'index',
transform: titlecase
}) %>
</div>