[英]Add template for taxonomies to Blogdown default theme
我试图将标签和类别添加到默认的Blogdown主题(hugo-lithium主题)。
第一步,将config.toml配置为在主题的主菜单中包括Categories和Tags链接:
[[menu.main]]
name = "Categories"
url = "/categories/"
weight = 2
[[menu.main]]
name = "Tags"
url = "/tags/"
weight = 3
单击类别链接显示:
Index of ./categories/
Name Size Date Modified
./ 2017-09-15 09:55:53
../ 2017-09-16 22:03:12
r/ 2017-09-15 09:55:53
index.xml 695 B 2017-09-17 14:25:01
单击标签链接显示:
Index of ./tags/
Name Size Date Modified
./ 2017-09-15 15:31:46
../ 2017-09-16 22:03:12
aws/ 2017-09-15 15:31:46
openemr/ 2017-09-15 15:31:46
plot/ 2017-09-15 09:55:53
r-markdown/ 2017-09-15 09:55:53
regression/ 2017-09-15 09:55:53
index.xml 1,199 B 2017-09-17 14:36:01
为了通过类别和标签操纵沼泽,寻求更好的用户体验。 我知道它的存在,正如我在其他主题中所见。
我知道问题在于分类法模板(terms.html)不在主题中,因此不会生成索引页(例如,tags / index.html)。
对于一个合理的用户,该如何将分类法模板(terms.html)添加到主题中,以便按类别和标签来细分博客文章列表?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.