{# Pinned carousel section, rendered above the recency list on page 1 of the post-index page. CSS scroll-snap; dot indicators via anchor links and :target. Single-pin case omits the dots. #} {% if pinned_posts %}

Pinned

{% for post in pinned_posts %}
{% if post.featured_image_id %} {% endif %}

{{ post.title }}

{% if post.body_excerpt %}

{{ post.body_excerpt }}

{% endif %}
{% endfor %}
{% if pinned_posts|length > 1 %} {# Active-dot styling: per-card :target drives a sibling selector. The attribute selector `a[href="#pinned-N"]` is self-documenting and robust to DOM reordering. Inlined here so single-pin pages don't carry the extra rules. #} {# Carousel-only enhancement: fixes the dot-nav vertical-jump bug (#267) and runs auto-advance (#266). Loaded only here so single-pin and no-pin pages stay JS-free. #} {% endif %}
{% endif %}