简码是什么

Markdown 很精简,以至于用户有时候需要使用原生 HTML 标签实现某些内容,例如视频的 <iframes>

Hugo 创建 简码 来克服 Markdown 过于精简的问题。

Hugo 在内容页面遇到简码(shortcodes)时会使用预设的模板去渲染。需要注意的是,模板文件使用简码是没有效果的。

更多内容,请见:https://gohugo.io/content-management/shortcodes/

区块引用

正常的区块引用:

This is a simple quote.

作者的区块引用:

This is a quote with only an Author named Author2.

Author2

作者与来源的区块引用:

This is a quote from Author3 and source “source.”

Author3 Source

作者与链接的区块引用:

This is a quote from Author4 and links to https://www.google.com.

作者、链接与名称的区块引用:

This is a quote from Author5 and links to https://www.google.com with title “Google.”

作者与链接超过32个字符的话,超出的部分会被省略,例如:

This is a quote from Author5 and links to https://twitter.com/CryptoGangsta/status/716427930126196737 which is longer than 32 characters.
And this is a new line in the quote with the HTML br tag.

Octpress 区块引用的测试在:http://octopress.org/docs/plugins/blockquote/

Over the past 24 hours I’ve been reflecting on my life & I’ve realized only one thing. I need a medieval battle axe.

音乐

git 代码段(gist)

可将 URL 的 用户名和 gist ID 嵌入到页面,例如:

1
{{< gist spf13 7896402 >}}

显示为:

Youtube

Vimeo

Youku