这是indexloc提供的服务,不要输入任何密码
Skip to content

Add pagination to the tags page #869

@Adriel-M

Description

@Adriel-M

Since the blog page has pagination, the tags should also paginate to keep the same functionality in that page.

I did something similar to my site: Adriel-M/adriel.dev#80 (no demo on my actual site since I don't have enough posts 😓 )

I had to:

  1. Create app/tags/[tag]/page/[page]/page.tsx to support the paging.
  2. Create a component layouts/PagedListLayoutWithTags.tsx that just populates the right fields to ListLayout
  3. Modify ListLayoutWithTags.tsx to handle finding out current tag and the base path since there's multiple levels now.

Let me know if this is something wanted and I can try sending a PR

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