In the past I have placed YAML files in the data folder and accessed it via .Site.Data.<filename>.<fieldname>
. This is great for data-driving content.
I’ve read about the relatively new “Page Resources” and it would seem that if my data is meant to be displayed on a specific page, it makes sense for that YAML file to live under content/<some page>
instead of in the “global” data folder.
Can I do this, and how do I access such a data resource that is local to a page?
I was hoping .Page.<filename>.<fieldname>
, but this does not seem to work.