diff --git a/templates/Home/user.html.twig b/templates/Home/user.html.twig index 4d98aa3..c7d2546 100644 --- a/templates/Home/user.html.twig +++ b/templates/Home/user.html.twig @@ -249,11 +249,22 @@ {% endif %} {% endif %} - {% if (loop.index - 1) % 8 == 0 %} + {% if loop.index == 1 %} + {% set classmini = 'grid-item-mini-50' %} + {% elseif loop.index % 8 == 0 %} {% set classmini = 'grid-item-mini-50' %} {% else %} {% set classmini = 'grid-item-mini-25' %} - {% endif %} + {% endif %} + + + {% set position = (loop.index - 1) % 10 + 1 %} + {% if position == 1 or position == 8 %} + {% set classmini = 'grid-item-mini-50' %} + {% else %} + {% set classmini = 'grid-item-mini-25' %} + {% endif %} + {% elseif appthumbwidth==1 %} {% set class="" %} {% elseif appthumbwidth==2 %} {% set class="grid-item-size-2" %} {% endif %} @@ -270,9 +281,10 @@ {% if appthumbheight!=0 %} {% set source="thumbori_"~illustration.illustration %} {% endif %} + -
+
{% endfor %}