fix: exclude unlisted (Loc) checkin posts from prev/next navigation
Build & Deploy / build-and-deploy (push) Successful in 1m28s
Build & Deploy / build-and-deploy (push) Successful in 1m28s
Switch both post-navigation components from collections.posts to collections.listedPosts so unlisted Swarmapp check-ins no longer appear in the previous/next post carousel. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{# Post Navigation - Previous/Next (image-first, inspired by zachleat.com) #}
|
||||
{% set _prevPost = collections.posts | previousInCollection(page) %}
|
||||
{% set _nextPost = collections.posts | nextInCollection(page) %}
|
||||
{% set _prevPost = collections.listedPosts | previousInCollection(page) %}
|
||||
{% set _nextPost = collections.listedPosts | nextInCollection(page) %}
|
||||
|
||||
{% if _prevPost or _nextPost %}
|
||||
<nav class="post-navigation mt-8 pt-6 border-t border-surface-200 dark:border-surface-700" aria-label="Post navigation">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{# Post Navigation Widget - Previous/Next #}
|
||||
{# Uses previousInCollection/nextInCollection filters to find adjacent posts #}
|
||||
{% set _prevPost = collections.posts | previousInCollection(page) %}
|
||||
{% set _nextPost = collections.posts | nextInCollection(page) %}
|
||||
{% set _prevPost = collections.listedPosts | previousInCollection(page) %}
|
||||
{% set _nextPost = collections.listedPosts | nextInCollection(page) %}
|
||||
|
||||
{% if _prevPost or _nextPost %}
|
||||
<is-land on:visible>
|
||||
|
||||
Reference in New Issue
Block a user