Skip to content

Homepage: show only the latest news announcement - #126

Merged
alphdelta merged 1 commit into
mainfrom
devin/1787344588-single-announcement
Aug 21, 2026
Merged

Homepage: show only the latest news announcement#126
alphdelta merged 1 commit into
mainfrom
devin/1787344588-single-announcement

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

The homepage announcement stack rendered three cards (two newest news posts + newest blog post), so stale posts sat above the current one. Now it renders only the newest news post:

- news_section.pages | slice(end=2)
+ news_section.pages | slice(end=1)
- {# blog card block #}

Once the BMT 2026 / BMT 2026 Online registration post is published it will be the sole card.

Link to Devin session: https://app.devin.ai/sessions/b2cad97fe85e4ad7aa2ed105e43fc39b
Requested by: @alphdelta


Open in Devin Review

Co-Authored-By: golden <golden@berkeley.mt>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Tested locally (Zola dev server on the PR branch) — all checks passed.

Homepage announcement stack now renders a single "News" card; the "Blog" card and second news card are gone.

Test run

Homepage with single News announcement

Announcement card close-up

  • Exactly one announcement card, label "News", title "BMT 2026 will be held on November 14, 2026"
  • No blog card / no second news card anywhere on the homepage
  • Card links to /news/bmt-2026-date-set/, post page renders correctly
  • Banner, event cards, newsletter form, sponsors, footer unchanged — no layout or template errors
Regression: listings unaffected

/news/ still lists all posts (2026 → 2023):

News listing

/resources/blog/ still lists all 5 blog posts:

Blog listing

Note on permalink

The newest news post's URL is /news/bmt-2026-date-set/ — Zola strips the 2026-05-27_ filename date prefix. Pre-existing behavior, unrelated to this PR.

@alphdelta
alphdelta merged commit 0e76957 into main Aug 21, 2026
6 checks passed
@alphdelta
alphdelta deleted the devin/1787344588-single-announcement branch August 21, 2026 20:45
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