Skip to content

Category won't fully populate for blog posts #42

@teonbrooks

Description

@teonbrooks

I noticed that under the category section of my blog that it is not fully populated. I believe this is caused by the line below

const res = await fetch(`${url.origin}/api/posts.json`)

when the posts.json is being fetched, it's being limited with the parameter postsPerPages, which only retrieves the first page of blog posts. However, to properly populate the category page, it needs to retrieve the entirety of posts.

It doesn't currently have a way to accept an argument

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