Answers for "adding bootstrap grid dynamically django"

0

adding bootstrap grid dynamically django

{% for sub_article in articles %}
    {% if forloop.first %}<div class="row">{% endif %}
    <div class="col-xs-4">
            <a href="#">
                {{ sub_article.name }}
            </a>
        </div>
    {% if forloop.counter|divisibleby:3 %}</div><div class="row">{% endif %}
    {% if forloop.last %}</div>{% endif %}
{% endfor %}
Posted by: Guest on April-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language