picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 616 forks source link

Using Yaml variable in markdown part of the file #664

Closed omniperspective closed 1 year ago

omniperspective commented 1 year ago

Is it possible to use a Yaml-variable in the markdown part of the index.md file, for example. Hence can I use a config.xyz variable from the file ~/config/config.yml ?

Would make life more easy Thanks for any response Henk

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1:

PhrozenByte commented 1 year ago

Yes, you can use %meta.*% placeholders, e.g.

---
greet: World!
---

Hello %meta.greet%
omniperspective commented 1 year ago

Thank you, this makes live so more easy. Regards Henk.