themcaffee/GoSquatch

The script fails on files with frontmatter

Opened this issue · 1 comments

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
---

What do you suggest could be done about it?

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?