The script fails on files with frontmatter
Opened this issue · 1 comments
HighPriest commented
Hey.
I am trying to get this script to produce something useful and I have ran into an issue with files which include Markdown Frontmatter.
I know this script is checking for
[_metadata_:title]:- "RPi Installation & Config"
[_metadata_:layout]:- "index"
at the beginning of a file, which is interfering with concept of Frontmatter, where data is represented like:
---
key: value
---
- Here is an Action which failed: https://github.com/AmunNet/notes/actions/runs/5985477698
- Here is an Action which succeeded: https://github.com/AmunNet/notes/actions/runs/5985470062
What do you suggest could be done about it?
HighPriest commented
I think it is not wise to prohibit existence of frontmatter or to move your method of metadata storage into the frontmatter.
I propose that goSquatch should be altered to look for the metadata in the whole file. Cause... why not?