Skip to content

Add source-specific announcements for legacy blog redirects - #178

Merged
cwickham merged 2 commits into
mainfrom
blog-source-announcement
May 5, 2026
Merged

cwickham merged 2 commits into
mainfrom
blog-source-announcement

Conversation

@jeroenjanssens

@jeroenjanssens jeroenjanssens commented Apr 15, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds announcement banners for visitors arriving from legacy blogs (Quarto, Shiny, Tidyverse, etc.) informing them that posts have moved to the unified Posit Open Source blog
  • Announcements render on /blog/q/* pages for no-JS users and dynamically on /blog/?q=source:* for JS users
  • Announcement content lives in the _index.md body of each /content/blog/q/<source>/ section, making it easy to customize per source

Test plan

  • Visit /blog/?q=source:quarto and verify the Quarto announcement banner appears
  • Visit /blog/?q=source:shiny and verify the Shiny announcement banner appears
  • Verify the featured section is hidden when a source announcement is visible
  • Clear the search query and verify the announcement disappears and featured reappears
  • Disable JS and visit /blog/q/quarto/ directly to verify the no-JS fallback shows the announcement
  • Verify no announcement appears on the default /blog/ page (no source query)

Show a banner when visitors arrive from a legacy blog (e.g., the
Quarto or Shiny blog) informing them that posts have moved to the
unified Posit Open Source blog. Announcements appear on /blog/q/*
pages for no-JS users and dynamically on /blog/?q=source:* for JS
users.
@netlify

netlify Bot commented Apr 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for posit-open-source canceled.

Name Link
🔨 Latest commit 14c33d6
🔍 Latest deploy log https://app.netlify.com/projects/posit-open-source/deploys/69fa538989d3630008fb5b13

@github-actions

Copy link
Copy Markdown
Contributor

Publishing checklist

  • Get a review — request at least one reviewer on this PR
  • Check your post — once the deploy preview is ready, a comment will appear with direct links to your post
  • Check the blog listing — confirm your post appears with the correct title, image, and description
  • Merge — once everything looks good and you have an approving review, merge to main

@github-actions

github-actions Bot commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

@cwickham

cwickham commented May 5, 2026

Copy link
Copy Markdown
Collaborator

/deploy-preview

@cwickham cwickham left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks good. Just a tweak to remove banner from q/rstudio/ --- it's not quite true that there is a blog moving from somewhere to here in this case.

@cwickham
cwickham merged commit 6f55ae2 into main May 5, 2026
12 checks passed
elnelson575 pushed a commit that referenced this pull request May 27, 2026
* Add source-specific announcements for legacy blog redirects

Show a banner when visitors arrive from a legacy blog (e.g., the
Quarto or Shiny blog) informing them that posts have moved to the
unified Posit Open Source blog. Announcements appear on /blog/q/*
pages for no-JS users and dynamically on /blog/?q=source:* for JS
users.

* Remove banner from `blog/q/rstudio`

---------

Co-authored-by: Charlotte Wickham <[email protected]>
@cwickham
cwickham deleted the blog-source-announcement branch September 24, 2026 17:50
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