Hide back navigation for empty texts
This commit is contained in:
parent
e87f46b2a6
commit
42ae757414
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user