Accessing Site Variables in Shortcodes

For a single page, I’m trying to load data from a json file in data/ and print it as an html list.

I’m trying to do this using a shortcode because I do not want to create a template for a single-use page - I just want to generate an html list.

I can’t access .Site.Data from within the shortcode. What is the proper way to do this?


1 Like