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)