- 文章更新时间
- 文章字数
- 文章阅读量
# 设置首页只显示部分摘要
Next 默认是会显示全文的,这样显然很不方便,因此需要一些方法去只显示前面一部分。
首先,检查 Next 主题的 _config.yml 中把设置打开 excerpt_description
选项。
在文章的 front-matter
中添加 description
描述,其中 description 中的内容就会被作为摘要显示在首页上,其余一律不显示。
1 |
|
# 文章分类
修改 new_post_name
值,在 _config.yml 文件找到该配置项,默认值为 :title.md
。
1 | # Writing |
修改为 :category/:title.md
1 | # Writing |
# 参考
- Hexo Next 主题显示文章更新时间
- 如何在 Hexo 中对文章 md 文件分类 ⭐