Created
February 26, 2014 05:12
-
-
Save jasonmccallister/9223881 to your computer and use it in GitHub Desktop.
Used in a Craft/Twig for loop to add a clear fix div after three entries.
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
{% if loop.index is divisibleby(3) %} | |
<div class="clearfix"></div> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment