Skip to content

fix(pagination): collapse long pager lists with ellipsis#39

Merged
HeyItsGilbert merged 1 commit into
mainfrom
fix/paginate-list-ellipsis
Jun 23, 2026
Merged

fix(pagination): collapse long pager lists with ellipsis#39
HeyItsGilbert merged 1 commit into
mainfrom
fix/paginate-list-ellipsis

Conversation

@HeyItsGilbert

Copy link
Copy Markdown
Member

Summary

On list pages with more than a few pages, the pager rendered every page number, overflowing off-screen.

This applies the windowed pager already present in _default/list.html to the two templates that still rendered the full list:

  • themes/powershell-community/layouts/taxonomy/author.html
  • themes/powershell-community/layouts/podcast/list.html

Each now shows the first two pages, the last two, and the current page ±1, collapsing the gaps into a single .... Existing color schemes (blue / purple) are preserved.

Example — a 10-page list on page 6 now renders 1 2 … 5 6 7 … 9 10 instead of all ten.

🤖 Generated with Claude Code

Apply the windowed pager already used in _default/list.html to the
author taxonomy and podcast list templates. Shows the first/last two
pages plus the current page and its neighbours, collapsing the gaps
into a single "...", so long lists no longer overflow the viewport.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q2NJsYE8nUKKHD25jXiHV1
@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit f784149
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6a39ddafd2e74a00083938ab
😎 Deploy Preview https://deploy-preview-39--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@HeyItsGilbert HeyItsGilbert merged commit 10010ab into main Jun 23, 2026
5 checks passed
@HeyItsGilbert HeyItsGilbert deleted the fix/paginate-list-ellipsis branch June 23, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant