Hexo的Next主题常用设置

添加「标签」页面

在终端下,定位到Hexo站点目录下。使用 hexo new page 新建一个页面,命名为tags:

1
知识兔td>
hexo new page tags
知识兔td>

会在 source 目录下生成 tags 目录,修改 tags 目录下 index.md 文件为:

1
2
3
4
知识兔td>
title: 我是一个标签
date: YYYY-MM-DD HH:mm:ss
comments: false
type: "tags"
知识兔td>

修改 next 主题配置 _config.yml 为:

1
2
知识兔td>
menu:
tags: /tags/ || tags
知识兔td>

添加「分类」页面

在终端下,定位到Hexo站点目录下。使用 hexo new page 新建一个页面,命名为categories:

1
知识兔td>
hexo new page categories
知识兔td>

会在 source 目录下生成 categories 目录,修改 categories 目录下 index.md 文件为:

1
2
3
4
知识兔td>
title: 我是一个分类
date: YYYY-MM-DD HH:mm:ss
comments: false
type: "categories"
知识兔td>

修改 next 主题配置 _config.yml 为:

1
2
知识兔td>
menu:
categories: /categories/ || th
知识兔td>

解决 Next v5 版本 Valine 评论系统报错

按照这个 PR 修改涉及到的相关文件即可。

原文:大专栏  Hexo的Next主题常用设置


计算机