Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locals variables not rendering #28

Open
dagoss opened this issue Jun 15, 2017 · 2 comments
Open

locals variables not rendering #28

dagoss opened this issue Jun 15, 2017 · 2 comments

Comments

@dagoss
Copy link

dagoss commented Jun 15, 2017

If I put a locals variable in my wintersmith config file like this:

"locals": {
  "title": "Some title"
}

and then use the variable in a nunjucks template like this:

{{ locals.title }}

It renders as blank in the generated output.

@jbuck
Copy link
Owner

jbuck commented Jul 2, 2017

@jnordberg Could you take a look at this if you've got some time?

@jnordberg
Copy link
Contributor

Hm, did {{ locals.title }} work in the previous version? AFAIK wintersmith-nunjucks has always exposed the locals at root level, i.e. {{ title }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants