From 05d2c48b5755aa27909a6d3e682c0b391fa12014 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Tue, 28 Feb 2023 21:13:36 +0100 Subject: [PATCH] Fix overview of nested pages --- Sources/Generator/Content/Element.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Generator/Content/Element.swift b/Sources/Generator/Content/Element.swift index 4c04423..bd041d9 100644 --- a/Sources/Generator/Content/Element.swift +++ b/Sources/Generator/Content/Element.swift @@ -366,7 +366,7 @@ extension Element { } var hasNestingElements: Bool { - elements.contains { $0.containsElements } + elements.contains { $0.hasVisibleChildren } } func itemsForOverview(_ count: Int? = nil) -> [Element] {