How to create Hexo site default page Tags and Categories

Hexo generation plug-in installation categories

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

Hexo installation of the plug-generated Tags

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

Generating categories page

      
      
1
      
      
hexo new page categories

Edit categores page

Open the sourcecategoriesindex.mdeditor to the following:

      
      
1
Big Box   How to create Hexo site Tags and Categories default page iv class = "line"> 2
3
4
5
6
      
      
---
title: categories
date: 2015-12-07 14:34:04
type: "categories"
comments: false # Close Comments widget
---

Generate tags page

      
      
1
      
      
hexo new page tags

Edit tags page

Open the sourcetagsindex.mdeditor to the following:

      
      
1
2
3
4
5
6
      
      
---
title: tags
date: 2015-12-07 14:34:18
type: "tags"
comments: false # Close Comments widget
---

Guess you like

Origin www.cnblogs.com/lijianming180/p/12026710.html