记录一些markdown语法和一些hexo特有的标签和语法

目录

  1. 标签
  2. 文本高亮
  3. tabbed code block
  4. 文章摘要

标签

格式:

1
{% alert [classes] %}content{% endalert %}

classes:info、success、warning、danger、[no-icon]

content

文本高亮

1
2
3
{% hl_text [(classes | hexa code | rgb color | rgba color)] %}
content
{% endhl_text %}
content content content

tabbed code block

1
2
3
4
5
{% tabbed_codeblock [name] [link] %}
<!-- tab [lang] -->
source code
<!-- endtab -->
{% endtabbed_codeblock %}
example
  • js
  • css
1
var test = 'test';

文章摘要

在正文指定的部分加入特定的标签使首页文章列表显示摘要功能

1
2
<!-- more -->:将标记前面的部分显示为摘要,该摘要内容在文章正文中依然显示
<!-- excerpt -->::将标记前面的部分显示为摘要,该摘要内容不显示在文章正文中