这篇文章只是我对 hexo 的一些功能的测试吧,可能后会常用到这些东西

Requirements

install Hexo

1
2
3
{% blockquote [author[, source]] [link] [source_link_title] %}
content
{% 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.

Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.

David Levithan-Wide Awake

NEW: DevDocs now comes with syntax highlighting. http://devdocs.io

Every interaction is both precious and an opportunity to delight.

1
2
3
{% codeblock [title] [lang:language] [url] [link text] %}
code snippet
{% endcodeblock %}
1
2
alert('Hello World!');
print('Hello World!')

language -> OC

1
[rectangle setX: 10 y: 10 width: 20 height: 20];

language -> python

1
print('Hello World!')

附加说明

Array.map
1
array.map(callback[, thisArg])

反引号代码块

[language] [title] [url] [link text] code snippet

language - >OC

1
[rectangle setX: 10 y: 10 width: 20 height: 20];

插入Image图片

1
2
{% img [class names] /path/to/image [width] [height] [title text [alt text]] %}
{% asset_img fileName.* title}
/posts/6743743b/test.lua test.lua

引用文章

1
2
{% post_path slug %}
{% post_link slug [title] %}

使用iframe

1
{% iframe url [width] [height] %}