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)
|
let backText = page.backLinkText(for: language)
|
||||||
|
|
||||||
var content = [HeaderKey : String]()
|
var content = [HeaderKey : String]()
|
||||||
content[.backLink] = makeBackLink(text: backText, language: language)
|
if let backText = backText.nonEmpty {
|
||||||
|
content[.backLink] = makeBackLink(text: backText, language: language)
|
||||||
|
}
|
||||||
if let suffix = metadata.titleSuffix {
|
if let suffix = metadata.titleSuffix {
|
||||||
content[.title] = factory.html.make(title: metadata.title, suffix: suffix)
|
content[.title] = factory.html.make(title: metadata.title, suffix: suffix)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user