aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/content/docs/shortcodes
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-05-31 00:18:25 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-05-31 00:18:25 +0200
commitb8b7184e8934ed937a8d8771a007e2ffff0646b9 (patch)
treed62d0e4bef2a1dc1c5d9eaa1afe5bbd63c2c6ab7 /exampleSite/content/docs/shortcodes
parentaa7c486e76ec119fa6a73cdeb01789a9ba67aa19 (diff)
Add section shortcode, to render children
Diffstat (limited to 'exampleSite/content/docs/shortcodes')
-rw-r--r--exampleSite/content/docs/shortcodes/section/_index.md15
-rw-r--r--exampleSite/content/docs/shortcodes/section/page1.md1
-rw-r--r--exampleSite/content/docs/shortcodes/section/page2.md1
3 files changed, 17 insertions, 0 deletions
diff --git a/exampleSite/content/docs/shortcodes/section/_index.md b/exampleSite/content/docs/shortcodes/section/_index.md
new file mode 100644
index 0000000..bd5db38
--- /dev/null
+++ b/exampleSite/content/docs/shortcodes/section/_index.md
@@ -0,0 +1,15 @@
+---
+bookCollapseSection: true
+---
+
+# Section
+
+Section renders pages in section as definition list, using title and description.
+
+## Example
+
+```tpl
+{{</* section */>}}
+```
+
+{{<section>}}
diff --git a/exampleSite/content/docs/shortcodes/section/page1.md b/exampleSite/content/docs/shortcodes/section/page1.md
new file mode 100644
index 0000000..9608001
--- /dev/null
+++ b/exampleSite/content/docs/shortcodes/section/page1.md
@@ -0,0 +1 @@
+# Page 1
diff --git a/exampleSite/content/docs/shortcodes/section/page2.md b/exampleSite/content/docs/shortcodes/section/page2.md
new file mode 100644
index 0000000..f310be3
--- /dev/null
+++ b/exampleSite/content/docs/shortcodes/section/page2.md
@@ -0,0 +1 @@
+# Page 2