Hexo啟用Tags功能

Hexo啟用Tags功能

Step1:建立新page,命名為tags

1
$ hexo new page "tags"

Step2:指令將會建立\blog\source\index.md

1
2
3
title: tags
date: 2019-09-12 09:22:12
type: "tags"

Step3:若有啟用評論功能,欲關閉時

1
2
3
4
title: tags
date: 2019-09-12 09:22:12
type: "tags"
comments: false

Step4:修改\blog\themes\next_config.yml 配置文件,啟用tags

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