Skip to content
Discussion options

You must be logged in to vote

Does this work? (blogPost => page)

- {% set previousBlogPost = collections.blogPost | getPreviousCollectionItem(blogPost) %}
- {% set nextBlogPost = collections.blogPost | getNextCollectionItem(blogPost) %}
+ {% set previousBlogPost = collections.blogPost | getPreviousCollectionItem(page) %}
+ {% set nextBlogPost = collections.blogPost | getNextCollectionItem(page) %}

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by web-couture-studios
Comment options

You must be logged in to vote
4 replies
@pdehaan
Comment options

pdehaan Dec 14, 2022
Collaborator

@zachleat
Comment options

@zachleat
Comment options

@web-couture-studios
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants