hexo主题-NexT主题食用
NexT 主题是一个非常简洁的主题,非常适合新手使用。下面我将介绍如何安装和使用 NexT 主题:
# 安装主题
- 这一步直接在博客项目文件中执行,安装好的主题会在
./themes/next中
1 | git clone https://github.com/next-theme/hexo-theme-next ./themes/next |
- 在_config.yml 中设置
1 | theme: next |
# NexT 的配置
打开 ./themes/next/_config.yml
搜索 menu 可配置菜单,将需要的菜单注释去掉,并添加菜单项,如:
1 | menu: |
去掉之后,在浏览器依旧是看不到内容的,需要创建对应页面。
1 | hexo new page "tags" |
并且需要在创建好的页面中添加 type 字段,如:
/tags/index.md
1 | title: tags |
/categories/index.md
1 | title: categories |
在 /about/index.md 可编辑关于页面内容。
1 | --- |