diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-22 16:17:55 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-22 16:17:55 +0200 |
commit | c80bd79dcd8a4bea3a15061dc6e17a46d374d485 (patch) | |
tree | 3f3f0caf226ae23115e71edf8f9949ab2ea82d58 /exampleSite/content | |
parent | cf6720efadb6e3a4fc70499424ab6a754a9f22a7 (diff) |
#39, Add multi-column shortcode
Diffstat (limited to 'exampleSite/content')
-rw-r--r-- | exampleSite/content/docs/shortcodes.md | 62 |
1 files changed, 57 insertions, 5 deletions
diff --git a/exampleSite/content/docs/shortcodes.md b/exampleSite/content/docs/shortcodes.md index f610a6d..ff46e16 100644 --- a/exampleSite/content/docs/shortcodes.md +++ b/exampleSite/content/docs/shortcodes.md @@ -2,25 +2,47 @@ ## Default -{{< expand >}} +```tpl +{{</* expand */>}} ## Markdown content +Lorem markdownum insigne... +{{</* /expand */>}} +``` -Some text +{{< expand >}} +## Markdown content +Lorem markdownum insigne... {{< /expand >}} ## Custom label -{{< expand "Custom Label" "..." >}} +```tpl +{{</* expand "Custom Label" "..." */>}} ## Markdown content +Lorem markdownum insigne... +{{</* /expand */>}} +``` -Some text +{{< 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 >}} # Tabs +```tpl +{{</* tabs "uniqueid" */>}} +{{</* tab "MacOS" */>}} # MacOS Content {{</* /tab */>}} +{{</* tab "Linux" */>}} # Linux Content {{</* /tab */>}} +{{</* tab "Windows" */>}} # Windows Content {{</* /tab */>}} +{{</* /tabs */>}} +``` + {{< tabs "uniqueid" >}} {{< tab "MacOS" >}} - # MacOS This is tab **MacOS** content. @@ -55,3 +77,33 @@ protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. Miseratus fonte Ditis conubia. {{< /tab >}} {{< /tabs >}} + +# Multi-Column shortcode + +```tpl +{{</* column */>}} <!-- begin columns block --> +# Left Content +... +{{</* column /*/>}} <!-- columns separator --> +# Right Content +... +{{</* /column */>}} <!-- end columns block --> +``` + +{{< column >}} +# 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. +{{< column />}} +# Mid Content +Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat +stringit, frustra Saturnius uteroque inter! +{{< column />}} +# 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. +{{< /column >}} |