Fix header generation bug

This commit is contained in:
Christoph Hagen 2022-08-16 14:58:57 +02:00
parent 5ec0502eab
commit 4793a5bb42

View File

@ -35,7 +35,7 @@ struct PageGenerator {
content[.head] = try makeHead(page: page, language: language) content[.head] = try makeHead(page: page, language: language)
content[.topBar] = factory.topBar.generate(section: page.sectionId, languageButton: nextLanguage) content[.topBar] = factory.topBar.generate(section: page.sectionId, languageButton: nextLanguage)
content[.contentClass] = "content" content[.contentClass] = "content"
if page.metadata.useCustomHeader { if !page.metadata.useCustomHeader {
content[.header] = makeHeader(page: page.metadata, metadata: metadata, language: language, backText: backText) content[.header] = makeHeader(page: page.metadata, metadata: metadata, language: language, backText: backText)
} }
content[.content] = try makeContent(page: page, language: language, url: inputContentUrl) content[.content] = try makeContent(page: page, language: language, url: inputContentUrl)