0%

new start

常用功能及写法

代码块

1
console.log('HELLO WORLD');

使用more进行截断,以上显示在主页上

1
<!-- more -->

图片

1
{% asset_img yuki.jpg 大萌神%}

或直接使用markdown格式的图片

链接

主页

1
[主页](https://sluggishpj.github.io/)

文本居中的引用

blah blah blah

1
{% cq %} blah blah blah {% endcq %}

引用块

everything will be better!

1
>everything will be better!

彩色引用块

Content (md partial supported)

Content (md partial supported)

Content (md partial supported)

Content (md partial supported)

Content (md partial supported)

Content (md partial supported)

1
2
3
4
5
6
{% note default %} Content (md partial supported) {% endnote %}
{% note primary %} Content (md partial supported) {% endnote %}
{% note success %} Content (md partial supported) {% endnote %}
{% note info %} Content (md partial supported) {% endnote %}
{% note warning %} Content (md partial supported) {% endnote %}
{% note danger %} Content (md partial supported) {% endnote %}

在两个彩色引用块之间插入md标签无效。。。原因未知。。。

引用书籍文章

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

David LevithanWide Awake
1
2
3
{% blockquote David Levithan, Wide Awake %}
Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.
{% endblockquote %}

引用网络上的文章

Every interaction is both precious and an opportunity to delight.

1
2
3
{% blockquote Seth Godin http://sethgodin.typepad.com/seths_blog/2009/07/welcome-to-island-marketing.html Welcome to Island Marketing %}
Every interaction is both precious and an opportunity to delight.
{% endblockquote %}

常用命令

新建文章

1
hexo new [layout] <title>

启动服务器

1
$ hexo server

生成静态文件

1
$ hexo g

发布

1
$ hexo publish [layout] <filename>

部署网站

1
$ hexo d

生成静态文件并部署

1
$ hexo g -d

建个博客真不容易,希望能坚持写下去。。。