From b8b7184e8934ed937a8d8771a007e2ffff0646b9 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 31 May 2020 00:18:25 +0200 Subject: Add section shortcode, to render children --- exampleSite/content/docs/shortcodes/section/_index.md | 15 +++++++++++++++ exampleSite/content/docs/shortcodes/section/page1.md | 1 + exampleSite/content/docs/shortcodes/section/page2.md | 1 + 3 files changed, 17 insertions(+) create mode 100644 exampleSite/content/docs/shortcodes/section/_index.md create mode 100644 exampleSite/content/docs/shortcodes/section/page1.md create mode 100644 exampleSite/content/docs/shortcodes/section/page2.md (limited to 'exampleSite/content') 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 +{{}} +``` + +{{
}} 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 -- cgit v1.2.3