xiangming / landscape-plus

针对中国大陆地区对hexo官方主题landscape进行优化。
http://xiangming.github.io/landscape-plus/
MIT License
508 stars 107 forks source link

怎么增加一个分类的? #128

Open Siomt opened 6 years ago

Siomt commented 6 years ago

我执行 hexo new page "android" 然后也出来了目录,就是再新建一个文章的时候不会在这个目录下 hexo new “新文章” 只会在首页出现,点击android目录不会出现

UGxhdHlwdXM commented 6 years ago

文章开头直接写categories: android吧…

Siomt commented 6 years ago

categories: android 没有用

Siomt commented 6 years ago

http://zhouchatian.com/

UGxhdHlwdXM commented 6 years ago

现在就没生成分类啊… 在主题配置文件的widgets:下面加上- category会生成分类的页面

estrm commented 4 years ago

http://zhouchatian.com/

Siomt, 请问你是怎么解决的?

widgets加了- category,也没有生成 category

estrm commented 4 years ago

现在就没生成分类啊… 在主题配置文件的widgets:下面加上- category会生成分类的页面

UGxhdHlwdXM, 按照你的方法,没有成功生成 category widget

UGxhdHlwdXM commented 4 years ago

现在就没生成分类啊… 在主题配置文件的widgets:下面加上- category会生成分类的页面

UGxhdHlwdXM, 按照你的方法,没有成功生成 category widget

现在文章的开头有写categories

estrm commented 4 years ago

现在就没生成分类啊… 在主题配置文件的widgets:下面加上- category会生成分类的页面

UGxhdHlwdXM, 按照你的方法,没有成功生成 category widget

现在文章的开头有写categories

文章开头

---
title: 我爱南京
date: 2020-02-11 23:30:36
tags: music
cetegories: LifeStories
---

主题配置文件 _config.yml

widgets:
- category
- tag
- tagcloud
- archive
- recent_posts
- friends

谢谢你,UGxhdHlwdXM。开心。 我知道问题所在了。单词 categories 错写成 cetegories了。