引用塊
在文章中插入引言,可包含作者,來源和標題。
{% blockquote [author[, source]] [link] [source_link_title] %}
content
{% endblockquote %}
- 沒有提供參數,則只輸出普通的blockquote
{% blockquote %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit lacus ut purus iaculis feugiat. Sed nec tempor elit, quis aliquam neque. Curabitur sed diam eget dolor fermentum semper at eu lorem.
{% endblockquote %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit lacus ut purus iaculis feugiat. Sed nec tempor elit, quis aliquam neque. Curabitur sed diam eget dolor fermentum semper at eu lorem.
- 引用書上的句子
{% blockquote David Levithan, Wide Awake %}
Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.
{% endblockquote %}
Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.
David Levithan—Wide Awake
代碼塊
在文章中插入代碼
{% codeblock [title] [lang:language] [url] [link text] %}
code snippet
{% endcodeblock %}
- 普通的代碼塊
{% codeblock %}
alert('Hello World!');
{% endcodeblock %}
alert('Hello World!');
- 指定語言
{% codeblock lang:objc %}
[rectangle setX: 10 y: 10 width: 20 height: 20];
{% endcodeblock %}
[rectangle setX: 10 y: 10 width: 20 height: 20];
其他常用的標簽
在文章中插入指定大小的圖片
{% img [class names] /path/to/image [width] [height] [title text [alt text]] %}
在文章中插入鏈接,并自動給外鏈添加target="_blank"
屬性
{% link text url [external] [title] %}
插入source
文件夾中的代碼文件
{% include_code [title] [lang:language] path/to/file %}
文章中插入Youtube視頻
{% youtube video_id %}