hexo 語法筆記

測試網站

本地端 http://localhost:4000

1
hexo s

新增文章

1
hexo new "文章"

佈屬

1
2
3
hexo cl  //清除之前建立的靜態檔案
hexo g //建立靜態檔案
hexo d //佈署至 Github Pages

文章閱讀更多中斷點

1
<!-- more -->  //文章中加入

文章使用父子分類

1
2
3
4
categories:
- 父分類
- 子分類
- 孫分類

引用標籤

  • 用法 1
    1
    {% cq %}引用文章{% endcq %}

    低頭不是認輸,是要看清自己的路;仰頭不是驕傲,是要看見自己的天空。

  • 用法 2
    1
    2
    3
    {% blockquote 書名或人名, 副標題 %}
    引用書上或人物的句子
    {% endblockquote %}

    低頭不是認輸,是要看清自己的路;仰頭不是驕傲,是要看見自己的天空。

    Kobe Bryant前美國職業籃球運動員

更多標籤寫法

Note標籤

1
2
3
4
5
6
{% note default %}  **default**  {% endnote %}
{% note primary %} **primary** {% endnote %}
{% note success %} **success** {% endnote %}
{% note info %} **info** {% endnote %}
{% note warning %} **warning** {% endnote %}
{% note danger %} **danger** {% endnote %}

default

primary

success

info

warning

danger