Access user variables for data globally

Hey everybody, I’m working with Forestry and Hugo and using Data files to provide theme options. I’m wondering if it’s possible to define variables in the baseof.html template that I can pass down to all partials.

i.e. {{$themeTextColor := .Site.Data.theme.text_color}}

I know I’ve seen the ability to pass variables with “dict” but then that requires messing with the “dot”. I know there’s also “Scratch” but that looks pretty verbose too.

I’ve think you’ve covered the possibilities.

@jmooring thanks yeah that’s what I was starting to think, just wanted to make sure I wasn’t missing something obvious.