Hide back navigation for empty texts

This commit is contained in:
Christoph Hagen 2022-08-29 13:35:40 +02:00
parent e87f46b2a6
commit 42ae757414

View File

@ -139,7 +139,9 @@ struct LocalizedSiteTemplate {
let backText = page.backLinkText(for: language)
var content = [HeaderKey : String]()
if let backText = backText.nonEmpty {
content[.backLink] = makeBackLink(text: backText, language: language)
}
if let suffix = metadata.titleSuffix {
content[.title] = factory.html.make(title: metadata.title, suffix: suffix)
} else {