2019-06-19 08:26:15 +00:00
|
|
|
# Shortcodes
|
|
|
|
## Expand shortcode
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2019-06-19 08:26:15 +00:00
|
|
|
### Default
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2019-05-22 14:17:55 +00:00
|
|
|
```tpl
|
|
|
|
{{</* expand */>}}
|
2019-05-22 12:37:31 +00:00
|
|
|
## Markdown content
|
2019-05-22 14:17:55 +00:00
|
|
|
Lorem markdownum insigne...
|
|
|
|
{{</* /expand */>}}
|
|
|
|
```
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2019-05-22 14:17:55 +00:00
|
|
|
{{< expand >}}
|
|
|
|
## Markdown content
|
|
|
|
Lorem markdownum insigne...
|
2019-05-22 12:37:31 +00:00
|
|
|
{{< /expand >}}
|
|
|
|
|
2019-06-19 08:26:15 +00:00
|
|
|
### With Custom Label
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2019-05-22 14:17:55 +00:00
|
|
|
```tpl
|
|
|
|
{{</* expand "Custom Label" "..." */>}}
|
2019-05-22 12:37:31 +00:00
|
|
|
## Markdown content
|
2019-05-22 14:17:55 +00:00
|
|
|
Lorem markdownum insigne...
|
|
|
|
{{</* /expand */>}}
|
|
|
|
```
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2019-05-22 14:17:55 +00:00
|
|
|
{{< expand "Custom Label" "..." >}}
|
|
|
|
## Markdown content
|
|
|
|
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
|
|
|
|
stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa
|
|
|
|
protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
|
|
|
|
Miseratus fonte Ditis conubia.
|
2019-05-22 12:37:31 +00:00
|
|
|
{{< /expand >}}
|
|
|
|
|
2019-06-19 08:26:15 +00:00
|
|
|
## Buttons
|
2019-05-27 16:25:58 +00:00
|
|
|
|
|
|
|
```tpl
|
2019-06-11 11:40:50 +00:00
|
|
|
{{</* button relref="/" [class="..."] */>}}Get Home{{</* /button */>}}
|
2019-05-27 16:25:58 +00:00
|
|
|
{{</* button href="https://github.com/alex-shpak/hugo-book" */>}}Contribute{{</* /button */>}}
|
|
|
|
```
|
|
|
|
|
|
|
|
{{< button relref="/" >}}Get Home{{< /button >}}
|
|
|
|
{{< button href="https://github.com/alex-shpak/hugo-book" >}}Contribute{{< /button >}}
|
|
|
|
|
2019-06-19 08:26:15 +00:00
|
|
|
## Tabs
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2019-05-22 14:17:55 +00:00
|
|
|
```tpl
|
|
|
|
{{</* tabs "uniqueid" */>}}
|
|
|
|
{{</* tab "MacOS" */>}} # MacOS Content {{</* /tab */>}}
|
|
|
|
{{</* tab "Linux" */>}} # Linux Content {{</* /tab */>}}
|
|
|
|
{{</* tab "Windows" */>}} # Windows Content {{</* /tab */>}}
|
|
|
|
{{</* /tabs */>}}
|
|
|
|
```
|
|
|
|
|
2019-05-22 12:37:31 +00:00
|
|
|
{{< tabs "uniqueid" >}}
|
|
|
|
{{< tab "MacOS" >}}
|
|
|
|
# MacOS
|
|
|
|
|
|
|
|
This is tab **MacOS** content.
|
|
|
|
|
|
|
|
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
|
|
|
|
stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa
|
|
|
|
protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
|
|
|
|
Miseratus fonte Ditis conubia.
|
|
|
|
{{< /tab >}}
|
|
|
|
|
|
|
|
{{< tab "Linux" >}}
|
|
|
|
|
|
|
|
# Linux
|
|
|
|
|
|
|
|
This is tab **Linux** content.
|
|
|
|
|
|
|
|
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
|
|
|
|
stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa
|
|
|
|
protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
|
|
|
|
Miseratus fonte Ditis conubia.
|
|
|
|
{{< /tab >}}
|
|
|
|
|
|
|
|
{{< tab "Windows" >}}
|
|
|
|
|
|
|
|
# Windows
|
|
|
|
|
|
|
|
This is tab **Windows** content.
|
|
|
|
|
|
|
|
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
|
|
|
|
stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa
|
|
|
|
protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
|
|
|
|
Miseratus fonte Ditis conubia.
|
|
|
|
{{< /tab >}}
|
|
|
|
{{< /tabs >}}
|
2019-05-22 14:17:55 +00:00
|
|
|
|
2019-06-19 08:26:15 +00:00
|
|
|
## Columns
|
2019-05-22 14:17:55 +00:00
|
|
|
|
2019-05-23 14:30:26 +00:00
|
|
|
```html
|
|
|
|
{{</* columns */>}} <!-- begin columns block -->
|
2019-05-22 14:17:55 +00:00
|
|
|
# Left Content
|
2019-05-23 14:30:26 +00:00
|
|
|
Lorem markdownum insigne...
|
|
|
|
|
|
|
|
<---> <!-- magic sparator, between columns -->
|
|
|
|
|
|
|
|
# Mid Content
|
|
|
|
Lorem markdownum insigne...
|
|
|
|
|
|
|
|
<---> <!-- magic sparator, between columns -->
|
|
|
|
|
2019-05-22 14:17:55 +00:00
|
|
|
# Right Content
|
2019-05-23 14:30:26 +00:00
|
|
|
Lorem markdownum insigne...
|
|
|
|
{{</* /columns */>}}
|
2019-05-22 14:17:55 +00:00
|
|
|
```
|
|
|
|
|
2019-05-23 14:30:26 +00:00
|
|
|
{{< columns >}}
|
|
|
|
## Left Content
|
2019-05-22 14:17:55 +00:00
|
|
|
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
|
|
|
|
stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa
|
|
|
|
protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
|
|
|
|
Miseratus fonte Ditis conubia.
|
2019-05-23 14:30:26 +00:00
|
|
|
|
|
|
|
<--->
|
|
|
|
|
|
|
|
## Mid Content
|
2019-05-22 14:17:55 +00:00
|
|
|
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
|
|
|
|
stringit, frustra Saturnius uteroque inter!
|
2019-05-23 14:30:26 +00:00
|
|
|
|
|
|
|
<--->
|
|
|
|
|
|
|
|
## Right Content
|
2019-05-22 14:17:55 +00:00
|
|
|
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
|
|
|
|
stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa
|
|
|
|
protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
|
|
|
|
Miseratus fonte Ditis conubia.
|
2019-05-23 14:30:26 +00:00
|
|
|
{{< /columns >}}
|
|
|
|
|
|
|
|
|
2019-06-19 08:26:15 +00:00
|
|
|
## Mermaid Chart
|
2019-05-23 14:30:26 +00:00
|
|
|
|
|
|
|
{{< columns >}}
|
|
|
|
```tpl
|
2019-06-11 11:40:50 +00:00
|
|
|
{{</* mermaid [class="text-center"]*/>}}
|
2019-05-23 14:30:26 +00:00
|
|
|
sequenceDiagram
|
|
|
|
Alice->>Bob: Hello Bob, how are you?
|
|
|
|
alt is sick
|
|
|
|
Bob->>Alice: Not so good :(
|
|
|
|
else is well
|
|
|
|
Bob->>Alice: Feeling fresh like a daisy
|
|
|
|
end
|
|
|
|
opt Extra response
|
|
|
|
Bob->>Alice: Thanks for asking
|
|
|
|
end
|
|
|
|
{{</* /mermaid */>}}
|
|
|
|
```
|
|
|
|
|
|
|
|
<--->
|
|
|
|
|
|
|
|
{{< mermaid >}}
|
|
|
|
sequenceDiagram
|
|
|
|
Alice->>Bob: Hello Bob, how are you?
|
|
|
|
alt is sick
|
|
|
|
Bob->>Alice: Not so good :(
|
|
|
|
else is well
|
|
|
|
Bob->>Alice: Feeling fresh like a daisy
|
|
|
|
end
|
|
|
|
opt Extra response
|
|
|
|
Bob->>Alice: Thanks for asking
|
|
|
|
end
|
|
|
|
{{< /mermaid >}}
|
|
|
|
|
|
|
|
{{< /columns >}}
|