hexo usage
How to use Hexo tag and Next tag
post tags and categories in Hexo front matter
let’s explain them in short samples
- tag
tags written in this way, no order, no level, flat, each line takes one tag
1 | tags: |
- categories
categories written in two ways, with order, level, not flat, same level categories must in different line1
2
3categories:
- [parentA, childA]
- parentB
Hexo tag and Next tag used in content
Tag plugins are different from post tags. They are ported from Octopress and provide a useful way for you to quickly add specific content to your posts
is an extension to which makes writting post easily.Actually, they will be converted to at last. you can use both of them at same time, here I only list the frequent one used in my posts.
Basic MarkDown tags
Line breaks
To create a line break (<br>), end a line with two or more spaces, and then type return.blockquote Next extended it as note
To create a blockquote, add a > in front of a paragraph.image
1
![Tux, the Linux mascot](/assets/images/tux.png)
Horizontal Rules
To create a horizontal rule, use three or more asterisks (***), dashes (—), or underscores (___) on a line by themselves.
Note: Many Markdown applications allow you to use HTML tags in Markdown-formatted text
Markdown Basic
Hexo tags
1 | {% link text url %} |
Next tags
note used to group content
1
2
3
4
5{% note [class] [no-icon] %}
Any content (support inline tags too.io).
{% endnote %}
[class] : default | primary | success | info | warning | danger.tabs used to group of content with tabs
1
2
3
4
5{% tabs Unique name %}
<!-- tab [Tab caption] -->
Any content (support inline tags too).
<!-- endtab -->
{% endtabs %}label used to color Text
1
2
3
4
5
6{% label [class]@Text %}
[class] : default | primary | success | info | warning | danger.
'@Text' can be specified with or without space
E.g. 'success @text' similar to 'success@text'.
If not specified, default class will be selected.