Last active
August 29, 2015 14:17
-
-
Save antonagestam/cc1810154108ed394958 to your computer and use it in GitHub Desktop.
Cycle example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="posts"> | |
<div class="row"> | |
{% for post in posts %} | |
<div class="post">{{ post }}</div> | |
{% if not forloop.last %} | |
{% cycle '' '' '</div><div class="row">' %} | |
{% endif %} | |
{% endfor %} | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment