diff options
-rw-r--r-- | layouts/partials/docs/menu-filetree.html | 6 |
1 files changed, 5 insertions, 1 deletions
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) }} </li> - {{ else if and .IsPage .Content }} + {{ else if and .IsPage }} <li> {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }} </li> @@ -39,6 +39,10 @@ <a href="{{ .Page.RelPermalink }}" class="{{ if $current }} active{{ end }}"> {{- partial "docs/title" .Page -}} </a> + {{ else if .Page.Params.bookHref }} + <a href="{{ .Page.Params.bookHref }}" role="button" class="{{ if $current }} active{{ end }}" target="_blank" rel="noopener"> + {{- partial "docs/title" .Page -}} + </a> {{ else }} <span>{{- partial "docs/title" .Page -}}</span> {{ end }} |