testing
authorSarah Conway Schnurr <sarah.conway@crunchydata.com>
Sat, 24 Aug 2019 15:59:06 +0000 (08:59 -0700)
committerSarah Conway Schnurr <sarah.conway@crunchydata.com>
Sat, 24 Aug 2019 15:59:06 +0000 (08:59 -0700)
templates/pages/sponsors.html

index e088367cf820a9ad469adc4023798010caf6410e..de9033bd28150fb1aa363b7ebb840cbaae3ebaa4 100644 (file)
@@ -12,9 +12,7 @@
 </p>
 
 <h2>Diamond</h2>
-{% if loop.index0 is divisibleby 2 %}
 <div class="row">
-{% endif %}
 {% for p in diamond %}
        <div class="col-md-6">
                <a href="{{p.link}}" target="_blank"><img id="sponsors" class="my-3" src="{{media("images/" + p.largelogo)}}" alt="{{p.name}}"></a>
@@ -41,7 +39,7 @@
 -->
 <h2>Gold</h2>
 {% for p in gold %}
-{% if loop.index0 is divisibleby 2 %}
+{% if loop.index0 is divisibleby 4 %}
 <div class="row">
 {% endif %}
   <div class="col-md-6">
@@ -54,9 +52,7 @@
 </div>
 
 <h2>Silver</h2>
-{% if loop.index0 is divisibleby 3 %}
 <div class="row">
-{% endif %}
 {% for p in silver %}
   <div class="col-md-3">
                <a href="{{p.link}}" target="_blank"><img id="sponsors" class="my-3" src="{{media("images/" + p.largelogo)}}" alt="{{p.name}}"></a>
@@ -69,9 +65,7 @@
 
 
 <h2>Supporter</h2>
-{% if loop.index0 is divisibleby 3 %}
 <div class="row">
-{% endif %}
 {% for p in supporter %}
   <div class="col-md-3">
                <a href="{{p.link}}" target="_blank"><img id="sponsors" class="my-3" src="{{media("images/" + p.largelogo)}}" alt="{{p.name}}"></a>