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
这样分类页就能显示文章分类了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)