新建 Hugo Blog 站点

下载和安装最新 hugo 命令工具1: 1 2 3 ~/opsnull-blog# wget https://github.com/gohugoio/hugo/releases/download/v0.54.0/hugo_0.54.0_Linux-64bit.tar.gz ~/opsnull-blog# tar -xvf hugo_0.54.0_Linux-64bit.tar.gz ~/opsnull-blog# mv hugo /usr/local/bin 创建一个新站点: 1 2 3 4 ~/opsnull-blog# hugo new site opsnull-blog ~/opsnull-blog# cd opsnull-blog/ ~/opsnull-blog# ls archetypes config.toml content data layouts static themes 使用 git 管理站点内容: 1 2 ~/opsnull-blog#

Shortcodes

Admonition

I'm title!

biu biu biu.

note

biu biu biu.

Without title.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{{% admonition note "I'm title!" false %}}
biu biu biu.

{{% admonition type="note" title="note" details="true" %}}
biu biu biu.
{{% /admonition %}}

{{% admonition example %}}
Without title.
{{% /admonition %}}

{{% /admonition %}}

JS Flowchart Diagrams

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|request

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e

JS Sequence Diagrams

Usage

1
2
3
4
Andrew->China: Says Hello, 您好!
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!