Hexo根目录配置_config.yml
category_map:
- Blogs: /categories/Blogs
- Tech: /categories/Tech
- Tools: /categories/Tools
- Other: /categories/Other
tag_map:
- JavaScript: js
- css: css
- html5: html5
主题目录配置 /themes/_config.yml
menu:
Home: /
Archives: /archives/
Categories: /categories
Tags: /tags/
About: /about
Rss: /atom.xml
生成导航栏categories文件夹
执行hexo new page categories 之后,需要加上layout: categories。
---
title: categories
date: 2020-11-29 00:16:24
type: categories
layout: categories
comments: false
---
生成文章
执行hexo new “文章名”,需要加上categories: Blogs。
title: 文章名
date: 2020-12-01 00:13:24
tags: blog
categories: Blogs