fixed frontmatter processing, added test

This commit is contained in:
Daniel Fichtinger 2025-02-08 00:11:28 -05:00
parent 4629200510
commit 0ecad9e96a
5 changed files with 102 additions and 4 deletions

View file

@ -147,7 +147,7 @@ func BuildFile(f *File, settings *Settings) error {
if err := util.CreateParents(f.OutPath); err != nil {
return err
}
if err := BuildHtmlFile(f.FrontMatterLen, f.InPath, f.OutPath, f.Data, settings); err != nil {
if err := BuildHtmlFile(f.FrontMatterLen, f.InPath, f.OutPath, f.PageData, settings); err != nil {
return errors.Join(errors.New("Error processing file "+f.InPath), err)
} else {
return nil