From abcd2a5712754c34b0db028255d42fb6fb167d85 Mon Sep 17 00:00:00 2001 From: Richard Vankoningsveld Date: Sun, 8 Oct 2017 09:33:28 +1000 Subject: [PATCH] Fix for varying length portfolio subtitles --- _includes/portfolio_grid.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_includes/portfolio_grid.html b/_includes/portfolio_grid.html index b8a72200d1..4cc070771b 100644 --- a/_includes/portfolio_grid.html +++ b/_includes/portfolio_grid.html @@ -23,6 +23,14 @@

{{ post.title }}

{{ post.subtitle }}

+ {% assign twos = forloop.index | modulo: 2 %} + {% assign threes = forloop.index | modulo: 3 %} + {% if twos == 0 %} + + {% endif %} + {% if threes == 0 %} + + {% endif %} {% endfor %}