We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Theme.yaml & arrays/structures - not working

Erin Dalzell May 24, 2015 by Erin Dalzell

I have the following in my theme.yaml:

globals:
  facebook: test
  twitter: testbar

In a template, I want to do the following:

        {{ globals }}
            <div class="input-block input-text">
                <label for="{{ key }}">{{ key }}</label><input type="text" name="vars[{{ value }}]" value="{{ value }}">
            </div>
        {{ /globals }}

But that doesn't work. No looping and no values for key or value.

Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
2 Replies
2 Followers