Created
October 8, 2018 10:13
-
-
Save gpbeer/02438276c7aba8d67844344739489e86 to your computer and use it in GitHub Desktop.
Acf repeater with dynamique bootstrap columns usint timber
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
{% set bootstrap_grid_columns = 12 %} | |
{% set column_class = 'col-sm-'~ bootstrap_grid_columns / post.repeater|length %} | |
<div class="row"> | |
{% for item in post.repeater %} | |
<article class="{{column_class}}"> | |
{{ item.title }} | |
</article> | |
{% endfor %} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment