fix(partial): restore data-slides on photo strip
Missing data-slides caused base.html.twig arrow script to read slideCount as 1 and bail before creating prev/next controls. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
{% set firstImg = images|first %}
|
{% set firstImg = images|first %}
|
||||||
{% set wrapRatio = firstImg.height > firstImg.width ? '4 / 5' : '4 / 3' %}
|
{% set wrapRatio = firstImg.height > firstImg.width ? '4 / 5' : '4 / 3' %}
|
||||||
<div class="journal-photo-wrap" style="aspect-ratio: {{ wrapRatio }}">
|
<div class="journal-photo-wrap" style="aspect-ratio: {{ wrapRatio }}">
|
||||||
<div class="journal-photo-strip pswp-gallery" id="gallery-{{ entry.slug }}">
|
<div class="journal-photo-strip pswp-gallery" id="gallery-{{ entry.slug }}" data-slides="{{ images|length }}">
|
||||||
{% for img in images %}
|
{% for img in images %}
|
||||||
<a class="journal-photo-slide"
|
<a class="journal-photo-slide"
|
||||||
href="{{ img.url }}"
|
href="{{ img.url }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user