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

category view does not layout correctly with current version of jinja #7

Open
simonm3 opened this issue Dec 29, 2019 · 0 comments
Open

Comments

@simonm3
Copy link

simonm3 commented Dec 29, 2019

There is a bug in category view. You cannot increment a counter inside a loop due to jinja scoping rules. I understand this did not used to be the case. You need to {% set i = loop.index-1 %} at the start of each loop as {% set i =i+1 %} at the end does not work.

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

1 participant