From 9a58945b8bd0dbaba8f22a38603eafac23e70185 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 5 Sep 2019 23:03:08 +0200 Subject: Reorganize files structure to be similar to menu bundle --- .../docs/introduction/examples/shortcodes.md | 199 +++++++++++++++++++++ 1 file changed, 199 insertions(+) create mode 100644 exampleSite/content/docs/introduction/examples/shortcodes.md (limited to 'exampleSite/content/docs/introduction/examples/shortcodes.md') diff --git a/exampleSite/content/docs/introduction/examples/shortcodes.md b/exampleSite/content/docs/introduction/examples/shortcodes.md new file mode 100644 index 0000000..bbcc81c --- /dev/null +++ b/exampleSite/content/docs/introduction/examples/shortcodes.md @@ -0,0 +1,199 @@ +--- +weight: 3 +--- + +# Shortcodes + +## Expand shortcode + +### Default + +```tpl +{{}} +## Markdown content +Lorem markdownum insigne... +{{}} +``` + +{{< expand >}} +## Markdown content +Lorem markdownum insigne... +{{< /expand >}} + +### With Custom Label + +```tpl +{{}} +## Markdown content +Lorem markdownum insigne... +{{}} +``` + +{{< 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. +{{< /expand >}} + +## Buttons + +```tpl +{{}}Get Home{{}} +{{}}Contribute{{}} +``` + +{{< button relref="/" >}}Get Home{{< /button >}} +{{< button href="https://github.com/alex-shpak/hugo-book" >}}Contribute{{< /button >}} + +## Tabs + +```tpl +{{}} +{{}} # MacOS Content {{}} +{{}} # Linux Content {{}} +{{}} # Windows Content {{}} +{{}} +``` + +{{< 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 >}} + +## Columns + +```html +{{}} +# Left Content +Lorem markdownum insigne... + +<---> + +# Mid Content +Lorem markdownum insigne... + +<---> + +# Right Content +Lorem markdownum insigne... +{{}} +``` + +{{< columns >}} +## Left 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. + +<---> + +## Mid Content +Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat +stringit, frustra Saturnius uteroque inter! + +<---> + +## Right 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. +{{< /columns >}} + + +## Mermaid Chart + +{{< columns >}} +```tpl +{{}} +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 >}} +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 >}} + + +## KaTeX + +{{< columns >}} + +```latex +{{}} +x = \begin{cases} + a &\text{if } b \\ + c &\text{if } d +\end{cases} +{{}} +``` + +<---> + +{{< katex >}} +x = \begin{cases} + a &\text{if } b \\ + c &\text{if } d +\end{cases} +{{< /katex >}} + +{{< /columns >}} + + -- cgit v1.2.3