From 23aa57d806b616caf61ea231de8c27167e29eddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 22 Feb 2020 10:57:43 +0100 Subject: [PATCH] Fix crashes for 404 in IsAncestor etc. Fixes #6931 --- content/en/readfiles/sectionvars.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/readfiles/sectionvars.md b/content/en/readfiles/sectionvars.md index 698955c02..45aaff1f3 100644 --- a/content/en/readfiles/sectionvars.md +++ b/content/en/readfiles/sectionvars.md @@ -5,13 +5,13 @@ : The page's first section below root, e.g. `/docs`, `/blog` etc. .InSection $anotherPage -: Whether the given page is in the current section. Note that this will always return false for pages that are not either regular, home or section pages. +: Whether the given page is in the current section. .IsAncestor $anotherPage -: Whether the current page is an ancestor of the given page. Note that this method is not relevant for taxonomy lists and taxonomy terms pages. +: Whether the current page is an ancestor of the given page. .IsDescendant $anotherPage -: Whether the current page is a descendant of the given page. Note that this method is not relevant for taxonomy lists and taxonomy terms pages. +: Whether the current page is a descendant of the given page. .Parent : A section's parent section or a page's section.