@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-microsub",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Microsub endpoint for Indiekit. Enables subscribing to feeds and reading content using the Microsub protocol.",
5
5
  "keywords": [
6
6
  "indiekit",
@@ -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
- <div class="item-card__photos item-card__photos--{{ [item.photo.length, 4] | min }}">
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=""