From 6ecc94ed2bf6c7c3b89be7d2dffe47f5202988ea Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sat, 29 Feb 2020 21:15:52 +0100 Subject: #155, Add expand indicator in collapsed section --- layouts/partials/docs/menu-filetree.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index 30fc2ce..24bf5b5 100644 --- a/layouts/partials/docs/menu-filetree.html +++ b/layouts/partials/docs/menu-filetree.html @@ -23,13 +23,8 @@ {{ define "book-section" }} {{ with .Section }} -
  • - {{ if .Content }} - {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }} - {{ else }} - {{ partial "docs/title" . }} - {{ end }} - +
  • + {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }} {{ template "book-section-children" (dict "Section" . "CurrentPage" $.CurrentPage) }}
  • {{ end }} @@ -59,8 +54,14 @@ {{ define "book-page-link" }} {{ with .Page }} - - {{ partial "docs/title" . }} + {{ if .Content }} + + {{- partial "docs/title" . -}} + {{ else }} + {{- partial "docs/title" . -}} + {{ end }} {{ end }} {{ end }} -- cgit v1.2.3