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 )} } /**