{% set icons = uniqueIcons %} {# Don't include variants (...-inverse) #} {% set rows = 6 %} {% set n = icons|length %} {% set nPerRow = (n / rows) | round(0, "ceil") %} {% set paddingPx = 5 %} {% set widthPx = 888 %} {# Using GitHub's Readme width #} {% set spacingPx = 2 * paddingPx %} {% set totalSpacePx = spacingPx * (nPerRow - 1) %} {% set iconWidthPx = (widthPx - totalSpacePx) / nPerRow %}