Closed vincent-ferotin closed 3 years ago
base-jinja
. If we were to make this change, it should be made there first.base-jinja
, because base-jinja
is auto-generated from base
, and our conversion script would need to special-case this (and remove the endif
at the end somehow).This PR is rejected. You can make this change in your own theme if you need it.
Instead of previous loop, iterating over all translated languages and displaying each lang. after some tests, we now proceed in 2 steps:
This allows use of all loop variables provided by Jinja2, notably loop.first and loop.last, with now correct values (previous loop, as filtering list elements inside its body, forbid usage of them). Moreover, this better allows modifying (e.g. by a child/sub-theme) HTML tags structure for displaying the list of translated posts links. Last, this change use more Jinja "expected way-to-do" and less programming idioms, and should potentially be more "designers friendly".