Skip to content

feat(card): add quiet caption style - #2293

Merged
markdumay merged 2 commits into
mainfrom
fix/card-category-caption
Oct 30, 2026
Merged

markdumay merged 2 commits into
mainfrom
fix/card-category-caption

Conversation

@markdumay

@markdumay markdumay commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds an opt-in quiet style for the category card header, set site-wide:

[main.cards]
    captionStyle = "quiet"
default quiet
Case Uppercase Sentence case
Date Long Medium, with abbreviated months
Separator Bullet Margin (me-3)
Category color text-body-emphasis text-body-secondary

The default is default, so existing sites keep their current output. Other header styles (full, date, publication, tags) are unaffected in both modes. Cards with a color still inherit their color.

This is a setting rather than an SCSS hook because CSS can't change the date format or remove the bullet from the markup.

Testing

  • pnpm test:templates passes, including a new quiet-caption environment and a tests/card-category.html case covering both modes.
  • The case fails when the quiet style is forced on in the default build, and when the quiet build runs against the previous partial.
  • The default build of the template test site is byte-identical to main with the previous partial: 0 files differ.
  • quiet checked on a downstream site in light and dark mode: the computed transform is none, the gap is 16px, and the secondary color measures 9.65:1 (light) and 7.29:1 (dark) against the page.

🤖 Generated with Claude Code

Render the category header as a quiet sentence-case label: drop the
uppercase transform, abbreviate the month, separate category and date
with a margin instead of a bullet, and use the secondary body color
for both. Other header styles are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit 054fdc4
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6ae4bc9d6f0277e31753d226
😎 Deploy Preview https://deploy-preview-2293--gethinode-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Make the category caption restyle opt-in through the new
`main.cards.captionStyle` site setting. Its default keeps the original
output. Setting it to `quiet` renders the `category` header as a
sentence-case label: no uppercase transform, a medium date, a margin
instead of a bullet, and the secondary body color for both parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@markdumay markdumay changed the title fix(card): soften category caption styling feat(card): add quiet caption style Oct 30, 2026
@markdumay
markdumay merged commit 1ab936d into main Oct 30, 2026
17 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.47.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@markdumay
markdumay deleted the fix/card-category-caption branch October 30, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant