Skip to content
Discussion options

You must be logged in to vote

Yeah, I think I've found {% assign %} will put the variable in the current page's scope, but not in layouts or other files. But setting things in front matter will propagate or data directory files or probably even eleventyComputed will work.

Not sure if you have a repo w/ a simple test case where I can take a look at your use case.

Replies: 1 comment 20 replies

Comment options

You must be logged in to vote
20 replies
@pdehaan
Comment options

pdehaan Sep 28, 2022
Collaborator

@robweychert
Comment options

@pdehaan
Comment options

pdehaan Sep 28, 2022
Collaborator

@robweychert
Comment options

@robweychert
Comment options

Answer selected by robweychert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants