From 4793a5bb42cc3f1a605ae1d770b0278b33c02969 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Tue, 16 Aug 2022 14:58:57 +0200 Subject: [PATCH] Fix header generation bug --- WebsiteGenerator/Generators/PageGenerator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebsiteGenerator/Generators/PageGenerator.swift b/WebsiteGenerator/Generators/PageGenerator.swift index dd7e89f..a1dc9c8 100644 --- a/WebsiteGenerator/Generators/PageGenerator.swift +++ b/WebsiteGenerator/Generators/PageGenerator.swift @@ -35,7 +35,7 @@ struct PageGenerator { content[.head] = try makeHead(page: page, language: language) content[.topBar] = factory.topBar.generate(section: page.sectionId, languageButton: nextLanguage) content[.contentClass] = "content" - if page.metadata.useCustomHeader { + if !page.metadata.useCustomHeader { content[.header] = makeHeader(page: page.metadata, metadata: metadata, language: language, backText: backText) } content[.content] = try makeContent(page: page, language: language, url: inputContentUrl)