summaryrefslogtreecommitdiff
path: root/layouts
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 /layouts
parentaa7c486e76ec119fa6a73cdeb01789a9ba67aa19 (diff)
Add section shortcode, to render children
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/section.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/shortcodes/section.html b/layouts/shortcodes/section.html
new file mode 100644
index 0000000..21d2e75
--- /dev/null
+++ b/layouts/shortcodes/section.html
@@ -0,0 +1,10 @@
+<dl>
+{{ range .Page.Pages }}
+ <dt>
+ <a href="{{ .RelPermalink }}">{{ partial "docs/title" . }}</a>
+ </dt>
+ <dd>
+ {{ default .Summary .Description }}
+ </dd>
+{{ end }}
+</dl>