0%

hexo theme: Next configuration

项目地址:theme-next

1
2
3
4
5
6
7
8
9
cd $HEXO_ROOTDIR
git clone https://github.com/theme-next theme/next
vim _config.yml
set: theme: hexo-theme-next
language: zh-Hans

cd themes/hexo-theme-next
vim _config.yml
set: scheme: Gemini

打开分类和标签页面

1
2
cd $HEXO_ROOTDIR
hexo new page categories && hexo new page tags

会提示

1
2
INFO  Created: ~/source/categories/index.md
INFO Created: ~/source/tags/index.md

在index.md中修改成

1
2
3
4
5
6
7
---
title: 文章分类
date: xxx
type: "categories"
---

...

最后在文章中添加

1
2
3
4
5
6
title: xxx
data: xxx
categories: Categories
tags:
- Tags1
- Tags2

最后在远端更新

1
2
cd $HEXO_ROOTDIR
hexo clean && hexo generate && hexo deploy

Reference:

Next主题更改语言
Next主题添加标签