From a2b055de52cb90180ad57c26119fe72e61d70494 Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Fri, 18 Oct 2019 00:19:24 -0400 Subject: Updated to Docsy HEAD This updates the vendored docsy to https://github.com/google/docsy/tree/1a09abe6d7eaf02e44f79de3eadf8178a3792e81 --- themes/docsy/layouts/partials/section-index.html | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 themes/docsy/layouts/partials/section-index.html (limited to 'themes/docsy/layouts/partials/section-index.html') diff --git a/themes/docsy/layouts/partials/section-index.html b/themes/docsy/layouts/partials/section-index.html new file mode 100644 index 000000000..be3cbcd9c --- /dev/null +++ b/themes/docsy/layouts/partials/section-index.html @@ -0,0 +1,29 @@ +
+ {{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} + {{ $parent := .Page }} + {{ if $parent.Params.no_list }} + {{/* If no_list is true we don't show a list of subpages */}} + {{ else if $parent.Params.simple_list }} + {{/* If simple_list is true we show a bulleted list of subpages */}} + + {{ else }} + {{/* Otherwise we show a nice formatted list of subpages with page descriptions */}} +
+ {{ range $pages }} + {{ if eq .Parent $parent }} +
+
+ {{- .Title -}} +
+

{{ .Description | markdownify }}

+
+ {{ end }} + {{ end }} + {{ end }} +
-- cgit v1.2.3