如何創建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