正常我们创建一个新的 hexo 博客时 直接访问 categories 默认页面时是无法访问到的,如果我们想要访问到可以通过以下操作创建一个默认的 categories 默认页面,在生成页面时,categories 相关内容会自动写进去

1
hexo new page categories

categories 默认 md 文档中添加 type: "categories"

1
2
3
4
5
---
title: categories
date: 2022-07-20 09:13:01
type: "categories"
---

创建 tags 默认页面类似,只需要把 type: "categories" 改为 type: "tags"