hugo-book-theme/exampleSite/content/docs/shortcodes.md

167 lines
3.9 KiB
Markdown
Raw Normal View History

2019-05-22 14:37:31 +02:00
# Expand shortcode
## Default
2019-05-22 16:17:55 +02:00
```tpl
{{</* expand */>}}
2019-05-22 14:37:31 +02:00
## Markdown content
2019-05-22 16:17:55 +02:00
Lorem markdownum insigne...
{{</* /expand */>}}
```
2019-05-22 14:37:31 +02:00
2019-05-22 16:17:55 +02:00
{{< expand >}}
## Markdown content
Lorem markdownum insigne...
2019-05-22 14:37:31 +02:00
{{< /expand >}}
## With Custom Label
2019-05-22 14:37:31 +02:00
2019-05-22 16:17:55 +02:00
```tpl
{{</* expand "Custom Label" "..." */>}}
2019-05-22 14:37:31 +02:00
## Markdown content
2019-05-22 16:17:55 +02:00
Lorem markdownum insigne...
{{</* /expand */>}}
```
2019-05-22 14:37:31 +02:00
2019-05-22 16:17:55 +02: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 14:37:31 +02:00
{{< /expand >}}
2019-05-27 18:25:58 +02:00
# Buttons
```tpl
{{</* button relref="/" [class="..."] */>}}Get Home{{</* /button */>}}
2019-05-27 18:25:58 +02: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-05-22 14:37:31 +02:00
# Tabs
2019-05-22 16:17:55 +02:00
```tpl
{{</* tabs "uniqueid" */>}}
{{</* tab "MacOS" */>}} # MacOS Content {{</* /tab */>}}
{{</* tab "Linux" */>}} # Linux Content {{</* /tab */>}}
{{</* tab "Windows" */>}} # Windows Content {{</* /tab */>}}
{{</* /tabs */>}}
```
2019-05-22 14:37:31 +02: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 16:17:55 +02:00
# Columns
2019-05-22 16:17:55 +02:00
```html
{{</* columns */>}} <!-- begin columns block -->
2019-05-22 16:17:55 +02:00
# Left Content
Lorem markdownum insigne...
<---> <!-- magic sparator, between columns -->
# Mid Content
Lorem markdownum insigne...
<---> <!-- magic sparator, between columns -->
2019-05-22 16:17:55 +02:00
# Right Content
Lorem markdownum insigne...
{{</* /columns */>}}
2019-05-22 16:17:55 +02:00
```
{{< columns >}}
## Left Content
2019-05-22 16:17:55 +02: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.
<--->
## Mid Content
2019-05-22 16:17:55 +02:00
Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat
stringit, frustra Saturnius uteroque inter!
<--->
## Right Content
2019-05-22 16:17:55 +02: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.
{{< /columns >}}
# Mermaid Chart
{{< columns >}}
```tpl
{{</* mermaid [class="text-center"]*/>}}
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 >}}