I’m trying to access a json file in the data folder. It is accessible from _default templates
but I cannot get to it with exact same code in a partial that is passed custom arguments. Example code:
<code>
{{ with $.Site.Data.MediaX }}
{{warnf "_DEFAULT:LIST:: Media query for 'X': %q" (index $.Site.Data.MediaQuery "XX" ) }}
{{ index $.Site.Data.MediaQuery "XX" }}
{{ else }}
{{ errorf " media query json file not found in data folder." }}
{{ end }}
</code>
Is $.Site
variable accessible from partials that do not get passed the global context?