0

I want to have an object pass as the site variable in my conditional statement.

I have already tried direct implementation... doesn't work.

...
  # I want to replace:
  {% for author in site.research %}
...
  # with:
...
  {% for author in site.{{include.content}} %}
...

1 Answer 1

1

{% for author in site[include.content] %} can do the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.