Hexo create multiple labels

Create a single label

After constantly trying to finally know how to create a more tags.

First need to make sure that under your home directory _config.yml hexo inside tags is open (the same method to create multiple categories and tags of)

avatar

<!-- more -->

In the command line input

avatar

Creates a folder in the folder blog / source file, called tags

Open the inside index.md, modified as follows

avatar

Note title name must tags, type name is

Once created

hexo g,

hexo s,

localhost: 4000, after the open tabs open should be empty

Only a md file to add the number of tabs will be displayed after the label tags.

 

You just open a source / _posts in the md file, add tags below the top, go to the tags on the label (- after spaces)

avatar

In this way again

hexo g

hexo s

localhost:4000

Open the tab page will be displayed

avatar

 

Create multiple

As above,

1. In hexo new page command input line which is a label

2. In the source which will create a file called "It's a label" folder, inside index.md as above to modify the type tags, name can be arbitrary

3. Replace the source / _posts inside md file, tags the Add - This is a label (and the same way as above) (- after spaces)

4. Open hexo home page, you can see one more tab label

Guess you like

Origin www.cnblogs.com/lanyun1103/p/11774188.html