Passing environment variable to the yaml file header #153
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
I would like to pass environment variables to the yaml file header. I tried the following:
None of them worked. Would it be something possible to do?
Thanks!
Actually you can do this when running gray-matter in Node using the JS parser:
Alternatively you could supply a custom parser engine:
Then use it like so:
I would like to do something similar, accessing environment variables on astro docs front matter.
Is this somehow possible using gray-matter?