Skip to content

When displaying pagination, is it designed to also show posts with the type "Page" on the last page? #25

@ywsrock

Description

@ywsrock

When displaying posts of type "Post," posts of type "Page" are also shown.
I changed onlyNewsletter: false to onlyPost: true to achieve the desired effect.

File:
notionic/pages/page/[page].js  Line:18

Currently:
const posts = await getAllPosts({ onlyNewsletter: false })
Should it be:
const posts = await getAllPosts({ onlyPost: true })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions