hugo的使用命令

1
2
3
hugo new posts/文章名字.md # 添加文章
hugo new posts/文章名字/index.md # 用于叶子资源捆绑
hugo server -D # 启动本地服务器
1
2
3
int main() {
    return 0;
}

Markdown语法

标题语法

这是一级标题

这是二级标题

这是三级标题

一级标题可选语法

二级标题可选语法

段落语法

Don’t put tabs or spaces in front of your paragraphs.

Keep lines left-aligned like this.

换行语法

First line with two spaces after.
And the next line.

强调语法

这是粗体 这是斜体

引用语法

我是一个引用

列表语法

有序列表

  1. 第一项
  2. 第二项
  3. 第三项

无序列表

  • 我
  • 还
  • 爱
  • 她
    • 天
    • 人
    • 合
    • 一

代码语法

行内代码

At the command prompt, type 我是行内代码.

代码块

我是代码块

分隔线语法




链接语法

链接文本放在中括号内,链接地址放在后面的括号中,链接title可选。

超链接Markdown语法代码:超链接显示名

对应的HTML代码:<a href="超链接地址" title="超链接title">超链接显示名</a>

图片语法

插入图片Markdown语法代码:![图片显示不了的替代](图片链接 "鼠标移动到上面的标题图片title")。

对应的HTML代码:<img src="图片链接" alt="图片alt" title="图片title"> 显示不了哦

表格语法

SyntaxDescription
HeaderTitle
ParagraphText

脚注

Here’s a simple footnote,1 and here’s a longer one.2

标题编号

My Great Heading

回到markdown第一个语法

删除线

世界是平坦的。 我们现在知道世界是圆的。

任务列表

  • Write the press release
  • Update the website
  • Contact the media

使用表情

去露营了! ⛺ 很快回来。

真好笑! 😂 😅

推荐表情网站


  1. 不知道写什么. ↩︎

  2. 我其实服了 ↩︎