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

157 lines
3.6 KiB
Markdown
Raw Normal View History

2019-05-22 12:37:31 +00:00
# Expand shortcode
## Default
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 >}}
## 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 >}}
# Tabs
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
# Columns
2019-05-22 14:17:55 +00:00
```html
{{</* columns */>}} <!-- begin columns block -->
2019-05-22 14:17:55 +00:00
# Left Content
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
Lorem markdownum insigne...
{{</* /columns */>}}
2019-05-22 14:17:55 +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.
<--->
## 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!
<--->
## 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.
{{< /columns >}}
# Mermaid Chart
{{< columns >}}
```tpl
{{</* 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 */>}}
```
<--->
{{< 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 >}}