resources/page: Treat null dates as zero dates

Closes #12906
This commit is contained in:
Joe Mooring
2024-10-06 11:02:19 -07:00
committed by Bjørn Erik Pedersen
parent ab03588db9
commit 3f68309148
2 changed files with 62 additions and 18 deletions

View File

@@ -728,7 +728,7 @@ func (f *frontmatterFieldHandlers) newDateFieldHandler(key string, setter func(d
return func(d *FrontMatterDescriptor) (bool, error) {
v, found := d.PageConfig.Params[key]
if !found || v == "" {
if !found || v == "" || v == nil {
return false, nil
}