Allow date and slug from filename for leaf bundles

Fixes #4558
This commit is contained in:
Janus
2018-10-16 23:51:48 +02:00
committed by Bjørn Erik Pedersen
parent 35fbfb19a1
commit 1f42e47e47
4 changed files with 34 additions and 4 deletions

View File

@@ -1326,7 +1326,7 @@ func (p *Page) update(frontmatter map[string]interface{}) error {
Params: p.params,
Dates: &p.PageDates,
PageURLs: &p.URLPath,
BaseFilename: p.BaseFileName(),
BaseFilename: p.ContentBaseName(),
ModTime: mtime,
GitAuthorDate: gitAuthorDate,
}