hexo书写语法

hexo 创建一个新页面的方法

命令 hexo new layout title tags

layout会默认使用scaffolds中的post模板来生成一个新页面

简写命令 hexo new 'title' tags

摘要内置标签

1
{% note class_name %} 内容 {% endnote %}

其中,class_name 可以是以下列表中的一个值:

  • default
  • primary
  • success
  • info
  • warning
  • danger

default

primary…

success…

info…

warning…

danger…

1
2
3
# 添加代码文件方法 -- 默认目录在 downloads/code 下;
{% include_code appjs lang:javascript cssbreak.html %}
{% iframe http://localhost:4000/downloads/code/cssbreak.html 600 600 %} # 插入ifram方法