如何创建Hexo站点的Tags和Categories默认页面


安装Hexo的categories生成插件

      
      
      
1
      
      
      
$ npm install hexo-generator-category --save

安装Hexo的Tags生成插件

      
      
      
1
      
      
      
$ npm install hexo-generator-tag --save

生成categories page

      
      
      
1
      
      
      
hexo new page categories

编辑categores page

打开sourcecategoriesindex.md编辑成如下内容:

      
      
      
1
大专栏   如何创建Hexo站点的Tags和Categories默认页面iv class="line">2
3
4
5
6
      
      
      
---
title: categories
date: 2015-12-07 14:34:04
type: "categories"
comments: false #关闭评论widget
---

生成tags page

      
      
      
1
      
      
      
hexo new page tags

编辑tags page

打开sourcetagsindex.md编辑成如下内容:

      
      
      
1
2
3
4
5
6
      
      
      
---
title: tags
date: 2015-12-07 14:34:18
type: "tags"
comments: false #关闭评论widget
---


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM