diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-05-31 00:18:25 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-05-31 00:18:25 +0200 |
commit | b8b7184e8934ed937a8d8771a007e2ffff0646b9 (patch) | |
tree | d62d0e4bef2a1dc1c5d9eaa1afe5bbd63c2c6ab7 /layouts/shortcodes | |
parent | aa7c486e76ec119fa6a73cdeb01789a9ba67aa19 (diff) |
Add section shortcode, to render children
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/section.html | 10 |
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> |