@rmdes/indiekit-endpoint-microsub 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -94,7 +94,8 @@
|
|
|
94
94
|
|
|
95
95
|
{# Photo grid (Aperture multi-photo pattern) #}
|
|
96
96
|
{% if item.photo and item.photo.length > 0 %}
|
|
97
|
-
|
|
97
|
+
{% set photoCount = item.photo.length if item.photo.length <= 4 else 4 %}
|
|
98
|
+
<div class="item-card__photos item-card__photos--{{ photoCount }}">
|
|
98
99
|
{% for photo in item.photo | slice(0, 4) %}
|
|
99
100
|
<img src="{{ photo }}"
|
|
100
101
|
alt=""
|