Skip to content

feat: news tag pills for website/software, placed inline with title#220

Merged
mmcky merged 2 commits into
mainfrom
feature/news-tag-pills-218-219
Jun 16, 2026
Merged

feat: news tag pills for website/software, placed inline with title#220
mmcky merged 2 commits into
mainfrom
feature/news-tag-pills-218-219

Conversation

@mmcky

@mmcky mmcky commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Addresses #218 and #219 — both refine how the auto-drafted news-track tag pills render on the /news list.

#218 — pill styling for website and software

The news track now emits four tags (lectures, books, website, software). lectures and books already had .qe-badge--* colour rules, but website and software fell through to the unstyled base .qe-badge, so they rendered as plain text. This adds two distinct colours so all four render consistently:

Tag Colour
lectures #306998 (blue, existing)
books #D25663 (red, existing)
website #2A9D8F (teal, new)
software #9558B2 (purple, new)

#219 — pill inline with the title

The base .qe-badge is display: block, which pushed the pill onto its own line between the title and excerpt, adding vertical space on every entry. The news-card title and news-archive overrides now set display: inline-block so the pill sits next to the title — e.g. Website update — June 8–14, 2026 [website] on a single line — keeping each entry compact. Applied in both the recent-posts cards and the year archive list.

Verification

bundle exec jekyll build succeeds. Temporary posts tagged website and software confirmed the layout emits qe-badge--website / qe-badge--software and that the pill renders on the same line as the title; the temp posts were removed before committing. The change is CSS-only (assets/main.scss).

🤖 Generated with Claude Code

Adds `.qe-badge--website` (teal) and `.qe-badge--software` (purple) so all
four news-track tags (lectures, books, website, software) render as styled
pills with distinct colours, matching the existing lectures/books pills.
Previously `website`/`software` tags fell through to the unstyled base
`.qe-badge`, rendering as plain text. Closes #218.

Also moves the tag pill inline next to the post title (and beside the date
in the archive list) instead of dropping it onto its own line: the base
`.qe-badge` is `display: block`, so the news-card and news-archive overrides
now set `display: inline-block` to keep each entry compact. Closes #219.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 16, 2026 06:32
@netlify

netlify Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy Preview for grand-swan-ca5201 ready!

Name Link
🔨 Latest commit 315496a
🔍 Latest deploy log https://app.netlify.com/projects/grand-swan-ca5201/deploys/6a30eea87f41070008a23579
😎 Deploy Preview https://deploy-preview-220--grand-swan-ca5201.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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the QuantEcon Jekyll site styling so news “track” tag pills render consistently across all four tags and appear inline with the news item title to keep the /news list compact (per #218 and #219).

Changes:

  • Added .qe-badge--website and .qe-badge--software background colors so these tags no longer fall back to the unstyled base badge.
  • Overrode .qe-badge to display: inline-block (and adjusted margins) within the news card title and news archive link contexts so the pill sits on the same line as the title.

@mmcky mmcky merged commit fbb6c7f into main Jun 16, 2026
5 checks passed
@mmcky mmcky deleted the feature/news-tag-pills-218-219 branch June 16, 2026 06:36
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