hugolib: Do not fall back to site title if not set in content file

See #5784
This commit is contained in:
Bjørn Erik Pedersen
2019-03-26 14:33:09 +01:00
parent 10bb614a70
commit 9bc6187b83
2 changed files with 5 additions and 3 deletions

View File

@@ -545,7 +545,7 @@ func (p *pageMeta) applyDefaultValues() error {
}
}
if p.title == "" {
if p.title == "" && p.f.IsZero() {
switch p.Kind() {
case page.KindHome:
p.title = p.s.Info.title