Skip to content

Add shared pagination partial with condensed page list#584

Merged
drmowinckels merged 1 commit into
mainfrom
pagination-partial
May 11, 2026
Merged

Add shared pagination partial with condensed page list#584
drmowinckels merged 1 commit into
mainfrom
pagination-partial

Conversation

@drmowinckels

Copy link
Copy Markdown
Member

Summary

  • Long page lists in production rendered every page number (60+ on the directory). Pagination now shows first 2, last 2, and current ±1 with fillers, while lists with ≤5 pages render unchanged.
  • Extract the pagination markup into a single partial (partials/pagination.html) reused by directory/list.html, post/list.html, and _default/list.html.
  • Fix a dark-mode contrast bug where .page-link:hover was applying near-white bg-light on the dark surface — now uses var(--color-raised).

Test plan

  • hugo build succeeds
  • Visit any paginated list (e.g. /blog/) — pagination renders as before
  • Visit /directory/ on a build with many entries — only first 2, last 2, and current ±1 show, with between
  • Hover a page link in light mode — purple text + lift
  • Hover a page link in dark mode — pill background uses raised surface (not white)
  • Directory filter view still hides pagination via the #directory-pagination id

🤖 Generated with Claude Code

Long page lists rendered every page number (60+ on the directory in
production). Extract a single pagination partial used by directory, post,
and default list templates that shows first 2, last 2, and current ±1
with ellipsis fillers, and patch dark-mode hover so the pill doesn't
flash near-white on dark backgrounds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@drmowinckels drmowinckels requested a review from a team as a code owner May 11, 2026 08:34
@drmowinckels drmowinckels requested review from reshamas and removed request for a team May 11, 2026 08:34
@netlify

netlify Bot commented May 11, 2026

Copy link
Copy Markdown

Deploy Preview for rladies-dev ready!

Name Link
🔨 Latest commit c1fb354
🔍 Latest deploy log https://app.netlify.com/projects/rladies-dev/deploys/6a0194ac6d397f0008376f50
😎 Deploy Preview https://deploy-preview-584--rladies-dev.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.

@github-actions

Copy link
Copy Markdown
Contributor

JSON Validation

✅ All JSON files are valid.

Updated: 2026-05-11T08:36:53.130Z

@drmowinckels drmowinckels merged commit 55cdf49 into main May 11, 2026
9 checks passed
@drmowinckels drmowinckels deleted the pagination-partial branch May 11, 2026 08:37
@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Report

Total CSS: 202.7 KB · Total JS: 593.4 KB · Combined: 796.1 KB

Asset breakdown
File Type Size
css/vendor/choices.min.min.202bbe9dbd7ebb46474fe4fecb39f3612d9080a16440be62cc38d278ef88c402.css CSS 7.6 KB
rladiesplus-bundle.min.min.694a5953f81c55f18c3e4272d2677dbc0a365e0256b2a7c19b69f58518bf3132.css CSS 116.9 KB
scss/fontawesome.min.c6ecb6e7454b2672a35004bf67ec128298b382cfe143bbe384b0b0004b692586.css CSS 78.2 KB
js/chapter-filter.min.e59a0a96af54e392d1bf73aa5ec6e5bbe3bdaac261858df9c6d66277c2639e15.js JS 1.1 KB
js/gh_helpwanted.min.1ab823ed329bbac484e16fe25f4d34bd8f8d97d407a92d51998e25f780631a60.js JS 2.0 KB
js/map-init.min.3c4446de4b59097b3d9b73aeabc4e1d169be90c248711fd61d4c488091b7216d.js JS 4.6 KB
js/vendor/alpine.min.899842782a7fd16fcc2d7a7c877ff9ec159394044c87b158b2ef132786606932.js JS 45.5 KB
js/vendor/choices.min.min.aa9e26453be059114046e7829cdd0c2dc05ce68f305880b5e9c979ef915f96fc.js JS 72.8 KB
js/vendor/d3map.bundle.min.min.0c10c77589d5f51bbf1678b371d157d43083ec99e1fa9799c9dfdb0faeb0d19a.js JS 189.2 KB
js/vendor/fullcalendar.bundle.min.min.306c93de75fa33a3c3b94b349661e20c38de19b8a537cf9363719a1436614389.js JS 260.1 KB
js/vendor/shuffle.min.min.9765d143257fb8f87bcab6310d33bdc47755f29bd86fa6bd40689bf546bba924.js JS 16.0 KB
rladiesplus-bundle.min.e7f9777c074ff6bef7937f29b5f4615656cc4e8c587402ffa91fa0218f4f7ed9.js JS 2.1 KB

Updated: 2026-05-11T08:37:37.761Z

@github-actions

Copy link
Copy Markdown
Contributor

Broken Link Check

✅ No broken links found.

Updated: 2026-05-11T08:37:38.836Z

@github-actions

Copy link
Copy Markdown
Contributor

Lighthouse Audit

No Lighthouse results collected.

Updated: 2026-05-11T08:41:48.844Z

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