Fix header generation bug
This commit is contained in:
parent
5ec0502eab
commit
4793a5bb42
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user