Home Archives Categories Tags

Shortcodes

发布时间: 更新时间: 总字数:504 阅读时间:2m 作者: 分享

ref https://gohugo.io/content-management/shortcodes/

Buttons

{{< button relref="/" [class="..."] >}}Get Home{{< /button >}}
{{< button href="https://github.com/xiexianbin/hugo-bootstrap-docs-x" >}}Contribute{{< /button >}}
Get Home Contribute

栅格使用

2个栅格

Hugo

Hugo 是一个用Go编写的静态网站生成器,2013由 Steve Francia 原创,自 v0.14Bjørn Erik Pedersen 主力开发,并由全球各地的开发者和用户提交贡献。HugoApache License 2.0 授权的开放源代码项目。 The world’s fastest framework for building websites

框架说明

hugo-bootstrap-docs-x谢先斌基于Hugo开发。框架源码托管在Github,详见:hugo-bootstrap-docs-x

3个栅格

{{< columns >}} <!-- begin columns block -->
# Left Content
Left Content...

<---> <!-- magic sparator, between columns -->

# Mid Content
Mid Content...

<---> <!-- magic sparator, between columns -->

# Right Content
Right Content...
{{< /columns >}}

Left Content

Left Content

Mid Content

Mid Content

Right Content

Right Content

Expand shortcode

Default

{{< expand >}}
## Markdown content
markdow content...
{{< /expand >}}
Expand

Markdown content

markdow content…

With Custom Label

{{< expand "Custom Label" "..." >}}
## Markdown content
Markdown content...
{{< /expand >}}
Custom Label ...

Markdown content

Markdown content…

figure

figure

Gist

{{< gist "xiexianbin" "b4d29101d9f363c05e710b3ac17b4393" >}}

highlight

{{< highlight "python" >}}
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    print 'Hello, world!'
{{< /highlight >}}
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    print 'Hello, world!'

img

img

instagram_simple

instagram_simple

instagram

instagram

Mermaid Chart






sequenceDiagram participant Alice participant Bob Alice->>John: Hello John, how are you? loop Healthcheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts
prevail! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!

sequenceDiagram participant Alice participant Bob Alice-»John: Hello John, how are you? loop Healthcheck John-»John: Fight against hypochondria end Note right of John: Rational thoughts prevail! John–»Alice: Great! John-»Bob: How about you? Bob–»John: Jolly good!

param

{{< param "categories" >}}
[hugo-bootstrap-docs-x]

ref

{{< ref "shortcodes.md" >}}
https://docs.xiexianbin.cn/hugo-bootstrap-docs-x/shortcodes/

relref

{{< relref "shortcodes.md" >}}
/hugo-bootstrap-docs-x/shortcodes/

Tab & Tabs

{{< tabs "uniqueid" >}}
{{< tab "MacOS" >}} # MacOS Content {{< /tab >}}
{{< tab "Linux" >}} # Linux Content {{< /tab >}}
{{< tab "Windows" >}} # Windows Content {{< /tab >}}
{{< /tabs >}}

MacOS

This is tab MacOS content.

Linux

This is tab Linux content.

Windows

This is tab Windows content.

twitter

{{< tweet "1132540858702548992" >}}

youtube

{{< youtube qtIqKaDlqXo >}}

Translations

最新评论
加载中...