From 39a53cdb1db97510cfc618759dad30d77992bc0e Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 29 Sep 2022 16:23:58 +0200 Subject: [PATCH] Generate all pages again --- Sources/Generator/Content/Element.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Generator/Content/Element.swift b/Sources/Generator/Content/Element.swift index 80ed26a..1e83b45 100644 --- a/Sources/Generator/Content/Element.swift +++ b/Sources/Generator/Content/Element.swift @@ -311,13 +311,13 @@ extension Element { } var linkedElements: [LinkedElement] { - let items = sortedItems + let items = sortedItems.filter { $0.state == .standard } let connected = items.enumerated().map { i, element in let previous = i+1 < items.count ? items[i+1] : nil let next = i > 0 ? items[i-1] : nil return (previous, element, next) } - return connected + elements.filter { !$0.state.isShownInOverview }.map { (nil, $0, nil )} + return connected + elements.filter { $0.state != .standard }.map { (nil, $0, nil )} } /**