Hi, is there an equivalent of .Site.Data for page scope?
I want to place some data files to page folder, such as:
pages/
foo/
comments/
a.json
b.json
...
Is it possible to get the foo/comments data in the foo page like .Data.comments?
I’m able to get the content via page resources, but I don’t know how to parse it to a map.
I ran another test, moving the 300 data files to the data directory (accessed via site.Data.comments). The build time was essentially the same at 176 ms (average of 5 runs).