From 1852b16d938e978409b9066b5fa2bf27b1a0f496 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 26 Apr 2022 13:14:22 +0200 Subject: #440L Adjust bookHref, check .Content again, add redirect --- layouts/partials/docs/html-head.html | 4 ++++ layouts/partials/docs/menu-filetree.html | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index ee855f6..b22c610 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -4,6 +4,10 @@ +{{- with .Page.Params.BookHref -}} + +{{- end -}} + {{- template "_internal/opengraph.html" . -}} {{ partial "docs/html-head-title" . }} diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index 8384f0f..edb150c 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 }} + {{ else if and .IsPage .Content }}
  • {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }}
  • @@ -28,19 +28,19 @@ {{ $current := eq .CurrentPage .Page }} {{ $ancestor := .Page.IsAncestor .CurrentPage }} - {{ if .Page.Params.bookCollapseSection }} + {{ if .Page.Params.BookCollapseSection }} - {{ else if .Page.Content }} - + {{ else if .Page.Params.BookHref }} + {{- partial "docs/title" .Page -}} - {{ else if .Page.Params.bookHref }} - + {{ else if .Page.Content }} + {{- partial "docs/title" .Page -}} {{ else }} -- cgit v1.2.3