From c2014a08a534ef6b55505e719a68ccce88cb3cdb Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Tue, 26 Apr 2022 07:10:39 -0400 Subject: [PATCH] Add BookHref, set explicit URL for the menu (#440) --- layouts/partials/docs/menu-filetree.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index dd61af7..8384f0f 100644 --- a/layouts/partials/docs/menu-filetree.html +++ b/layouts/partials/docs/menu-filetree.html @@ -15,7 +15,7 @@ {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }} {{ template "book-section-children" (dict "Section" . "CurrentPage" $.CurrentPage) }} - {{ else if and .IsPage .Content }} + {{ else if and .IsPage }}
  • {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }}
  • @@ -39,6 +39,10 @@ {{- partial "docs/title" .Page -}} + {{ else if .Page.Params.bookHref }} + + {{- partial "docs/title" .Page -}} + {{ else }} {{- partial "docs/title" .Page -}} {{ end }}