HexoNext主题下分类标签:
博客功能模块的增加
主页功能块:
编辑hexo项目下主题配置文件:
# vim themes/next/_config.yml
// 删除前面的注释即代表启用
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
我这里启用了home,about,tags,categories,archives
创建相应的页面:
# hexo new page "about"
INFO Created: <...>/source/about/index.md
# hexo new page "tags"
INFO Created: <...>/source/tags/index.md
# hexo new page "categories"
INFO Created: <...>/source/categories/index.md
重新生成静态文件:
# hexo g
效果图:
文章分类:
进入刚刚生成的index.md
:
# vim source/categories/index.md
// 增加type属性
---
title: categories
date: 2020-09-26 20:08:39
type: "categories"
---
进入需要分类的文章的index.md
:
# vim source/_posts/Blog.md
// 增加categories属性为Web
---
title: Blog搭建
date: 2020-09-26 19:06:24
tags:
categories: Web
---
重新生成静态文件:
# hexo g
效果图:
文章标签:
进入刚刚生成的index.md
:
# vim source/tags/index.md
// 增加type属性
---
title: tags
date: 2020-09-26 20:08:39
type: "tags"
---
进入需要贴标签文章的index.md
:
# vim source/_posts/Blog.md
// 将tags的属性为设置为Blog
---
title: Blog搭建
date: 2020-09-26 19:06:24
tags: Blog
categories: Web
---
重新生成静态文件:
# hexo g
效果图:
关于页面:
直接进入index.md
编辑即可:
# vim source/about/index.md
---
title: 关于我
date: 2020-09-26 20:19:30
---
> 如果再也不能见到你,祝你早安,午安,晚安。
QQ:2511919075
E-mail:2511919075@qq.com
个人博客:[www.rainhacker.com](www.rainhacker.com)
优快云:[https://blog.youkuaiyun.com/qq_40549070](https://blog.youkuaiyun.com/qq_40549070)
效果图:
最后欢迎大家访问我的无名小站www.rainhacker.com