YenYuHsuan / hexo-theme-beantech

:sparkles: Ported theme of Hux Blog by Kaijun, Modified by YuHsuan :sparkles:
http://beantech.org
Apache License 2.0
441 stars 105 forks source link

categories页面应该如何配置? #7

Closed SuperChrisliu closed 7 years ago

SuperChrisliu commented 7 years ago

[创建在导航添加categories后并没有解决这个issuecategories页面使用的是page模版

SuperChrisliu commented 7 years ago

看了next主题的代码,在page模版里通过page.type判断页面类型if(page.type === 'categories')

YenYuHsuan commented 7 years ago

@xchz 我懂你意思了~ 感謝你的回覆^__^

BTW 因為我個人沒特別需要一頁面顯示categories所以我沒特別製做這個page的模板 但若有需要,大家可以利用 xchz的方法 製做的categories模板 謝謝 :smile: Peace!