fixed frontmatter processing, added test
This commit is contained in:
parent
4629200510
commit
0ecad9e96a
5 changed files with 102 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue