next 主题开启 tags 页面

1、新建 tags 页面

1
hexo new page tags

运行完毕后会在 source/tags 目录下生成 index.md 文件,我们修改内容如下:

1
2
3
4
5
---
title: tags
date: 2021-05-13 08:51:02
type: "tags"
---

2、开启主题配置
themes/next 目录下找到 _config.yml 文件修改以下内容:

1
2
3
4
5
6
7
8
9
menu:
home: / || fa fa-home
#about: /about/ || fa fa-user
tags: /tags/ || fa fa-tags
#categories: /categories/ || fa fa-th
#archives: /archives/ || fa fa-archive
#schedule: /schedule/ || fa fa-calendar
#sitemap: /sitemap.xml || fa fa-sitemap
#commonweal: /404/ || fa fa-heartbeat

3、生成文件

1
2
hexo clearn
hexo generate