]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Don't create empty columns in documentation
authorHerst <Herst@users.noreply.github.com>
Thu, 7 Sep 2017 17:11:26 +0000 (19:11 +0200)
committerMark Otto <markd.otto@gmail.com>
Sun, 10 Sep 2017 00:00:24 +0000 (17:00 -0700)
docs/4.0/getting-started/options.md

index 0b83c47f87693e0a4e75ce574a77d84c93754bc4..2547ef1adce69b3d525755a9832f9783970b2447 100644 (file)
@@ -46,11 +46,11 @@ All colors available in Bootstrap 4, available as Sass variables and a Sass map
 
 <div class="row">
   {% for color in site.data.colors %}
+    {% unless color.name == "white" or color.name == "gray" or color.name == "gray-dark" %}
     <div class="col-md-4">
-      {% unless color.name == "white" or color.name == "gray" or color.name == "gray-dark" %}
         <div class="p-3 mb-3 swatch-{{ color.name }}">{{ color.name | capitalize }}</div>
-      {% endunless %}
     </div>
+    {% endunless %}
   {% endfor %}
 </div>