where should a yaml-file sit if i want to call it from within a md-file?
and how do I call its contents into a page? thaaaaaaaaaanks
where should a yaml-file sit if i want to call it from within a md-file?
and how do I call its contents into a page? thaaaaaaaaaanks
YAML files just provide configuration data. All of these will require Grav processing to be enabled on the page (off by default). See Content Headers docs for details on how to do this.
In Grav you have several options for where to put YAML data:
my_var: foo
{{ header.my_var }}
user/config/site.yaml
and access from the page with:{{ site.my_var }}
user/config/myfile.yaml
{{ config.myfile.my_var }}
The choice is yours!
merci you are great. thanks for explanation !