import Foundation struct FeedNavigationLink { let text: LocalizedText let url: LocalizedText } struct Feed { private let navigationIconPath = "/assets/icons/ch.svg" let language: ContentLanguage let title: LocalizedText let description: LocalizedText let iconDescription: LocalizedText let navigationItems: [FeedNavigationLink] let posts: [FeedEntryData] var content: String { #warning("TODO: Split feed into multiple pages") var result = "" result += "" let head = PageHead( title: title.getText(for: language), description: description.getText(for: language)) result += head.content result += "
" addNavbar(to: &result) result += "