Hugo中TaxonomyTemplate的查找顺序
文章目录
tags和categories是hugo默认会创建的两种分类, 如果要手工创建分类可以在config文件中配置
|
|
tags和categories对应的url
1 2 |
http://域名/tags http://域名/categories |
如果不希望hugo创建任何分类, 配置config中的disableKinds属性
1
|
disableKinds = ["taxonomy", "taxonomyTerm"] |
taxonomy list(某一分类的文章列表)), taxonomy terms list(所有的分类)
Taxonomy Terms List Pages
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
layouts/categories/category.terms.html layouts/categories/terms.html layouts/categories/list.html layouts/taxonomy/category.terms.html layouts/taxonomy/terms.html layouts/taxonomy/list.html layouts/category/category.terms.html layouts/category/terms.html layouts/category/list.html layouts/_default/category.terms.html layouts/_default/terms.html layouts/_default/list.html |
Taxonomy List Pages
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
layouts/categories/category.html layouts/categories/taxonomy.html layouts/categories/list.html layouts/taxonomy/category.html layouts/taxonomy/taxonomy.html layouts/taxonomy/list.html layouts/category/category.html layouts/category/taxonomy.html layouts/category/list.html layouts/_default/category.html layouts/_default/taxonomy.html layouts/_default/list.html |
文章作者 Suroppo
上次更新 2019-11-05