{# Post Navigation Widget - Previous/Next #} {# Uses previousInCollection/nextInCollection filters to find adjacent posts #} {% set _prevPost = collections.listedPosts | previousInCollection(page) %} {% set _nextPost = collections.listedPosts | nextInCollection(page) %} {% if _prevPost or _nextPost %}

More Posts

{% if _prevPost %} {% endif %} {% if _nextPost %}
Next {% set _likedUrl = _nextPost.data.likeOf or _nextPost.data.like_of %} {% set _bookmarkedUrl = _nextPost.data.bookmarkOf or _nextPost.data.bookmark_of %} {% set _repostedUrl = _nextPost.data.repostOf or _nextPost.data.repost_of %} {% set _replyToUrl = _nextPost.data.inReplyTo or _nextPost.data.in_reply_to %} {% if _likedUrl %} Liked {{ _likedUrl | replace("https://", "") | truncate(35) }} {% elif _bookmarkedUrl %} {{ _nextPost.data.title or ("Bookmarked " + (_bookmarkedUrl | replace("https://", "") | truncate(30))) }} {% elif _repostedUrl %} Reposted {{ _repostedUrl | replace("https://", "") | truncate(35) }} {% elif _replyToUrl %} Reply to {{ _replyToUrl | replace("https://", "") | truncate(35) }} {% else %} {{ _nextPost.data.title or _nextPost.data.name or (_nextPost.templateContent | striptags | truncate(50)) or "Note" }} {% endif %}
{% endif %}
{% endif %}