From 2b430b0b4116ac0140ec501562ccf66ef297b86a Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 28 Apr 2020 22:00:24 +0200 Subject: #212, Fix use of IsAncestor after hugo breaking change --- layouts/partials/docs/menu-filetree.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index 4233a07..fcde91e 100644 --- a/layouts/partials/docs/menu-filetree.html +++ b/layouts/partials/docs/menu-filetree.html @@ -9,7 +9,7 @@ {{ define "book-section-children" }}{{/* (dict "Section" .Section "CurrentPage" .CurrentPage) */}} {{ $self := eq .CurrentPage .Section }} - {{ $ancestor := strings.HasPrefix .CurrentPage.RelPermalink .Section.RelPermalink }} + {{ $ancestor := .Section.IsAncestor .CurrentPage }} {{ $collapsed := .Section.Params.bookCollapseSection }} {{ if or $self $ancestor (not $collapsed) }} -- cgit v1.2.3