You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it supposed to be possible to change the front matter? It seems no matter what I do, I can't get rid of
---
title: index
---
I looked at utils/file.js and I've tried to insert my own front matter but the default always appears. I thought I'd need something with similar formatting to the above, but adding that just means I get both my own front matter and the default.
The text was updated successfully, but these errors were encountered:
Some more detail. I see in utils/file.js that the extractFrontMatter function looks for text at the beginning of a file that's delimited by --- at the beginning and the end. If that's not found for some reason, it throws an error and the front matter for a file named index.md is
---
title: index
---
But when I insert my own front matter I always get the default anyway. If my file starts with
---
title: stuff
---
Then the exported file starts with:
---
title: index
---
---
title: stuff
---
It seems like utils/file.js is checking for front matter but then always inserting default front matter anyway.
Is it supposed to be possible to change the front matter? It seems no matter what I do, I can't get rid of
I looked at
utils/file.js
and I've tried to insert my own front matter but the default always appears. I thought I'd need something with similar formatting to the above, but adding that just means I get both my own front matter and the default.The text was updated successfully, but these errors were encountered: