Skip to content

style(cv): keep role headings with their bullets in the printed CV - #10

Closed
ctr26 wants to merge 1 commit into
masterfrom
fix/cv-print-page-breaks
Closed

ctr26 wants to merge 1 commit into
masterfrom
fix/cv-print-page-breaks

Conversation

@ctr26

@ctr26 ctr26 commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Follow-up to #9. That PR merged at f3df8e3; this commit (1b25b3a) reached the branch after the merge.

Adds one print-only rule to cv-print.css: p:has(+ ul) { break-after: avoid; }. Without it, make pdf splits the National Physical Laboratory entry across the page break (heading at the foot of page 1, bullet on page 2). With it, the PDF is still 2 A4 pages and the entry starts page 2 whole. The website itself is unaffected (print CSS only).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 1b25b3a)
Copilot AI balanced review requested due to automatic review settings October 1, 2026 05:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The targeted Chrome print rule correctly addresses the reported page-break issue without affecting the website.

Review effort: Balanced
Findings: None

What changed in this PR

Adds print-only pagination styling so CV role headings stay with their following bullet lists.

Changes:

  • Prevents page breaks immediately after paragraphs followed by unordered lists.
File Description
cv-print.css Adds the role-heading pagination rule.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

ctr26 pushed a commit that referenced this pull request Oct 4, 2026
cv-print.css keeps a role heading on the same page as its bullets, so
make pdf no longer splits the National Physical Laboratory entry across
the break. _config.yml gains url, author, and a real description, so
jekyll-seo-tag emits a meta description and canonical link.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFVYogXC9MgS2EuFBvrZog

ctr26 commented Oct 4, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #11, which carried the same rule (p:has(+ ul) { break-after: avoid; }) into cv-print.css and merged at 1aac77e. make pdf is 2 pages with the NPL entry whole on page 2. Closing.


Generated by Claude Code

@ctr26 ctr26 closed this Oct 4, 2026
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.

2 participants