HexoNext分类标签

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)

CSDN:[https://blog.csdn.net/qq_40549070](https://blog.csdn.net/qq_40549070)

效果图:
在这里插入图片描述
最后欢迎大家访问我的无名小站www.rainhacker.com

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值