在终端powershell下,确保此时是在hexo目录下,命令行输入
1 | hexo new page tags //新建tags页面 |
然后会在hexo下的source目录看到tags文件夹,在index.md里输入
1 | --- |
然后再用同样的方法,新建一个categories
1 | hexo new page categories //新建categories页面 |
然后配置categories 文件夹下的index.md
1 | --- |
给自己的帖子新加配置,增加tags和categories
1 | --- |
进入主题/layout目录下,看看有没有categories.swig和tags.swig模板文件,没有则新建这两个文件