Fix missing space between month and year in newsletter header#4298
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J9yEgk3xrExJerWdMMjNkE
✅ Deploy Preview for nf-core-main-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
mashehu
approved these changes
Jul 1, 2026
mashehu
enabled auto-merge (rebase)
July 1, 2026 13:40
ewels
commented
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The newsletter header date rendered as e.g. "1st July2026" — no space between the month name and the year (visible at https://nf-co.re/newsletter/2026/07).
Cause
In
NewsletterLayout.astro,{monthName}and{year}were on separate lines:In JSX/Astro, whitespace-only text between two expressions that contains a newline is collapsed to nothing, so the two values ran together:
1st July+2026→1st July2026.Fix
Put them on a single line with an explicit space:
Now renders correctly as "1st July 2026".
🤖 Generated with Claude Code
Generated by Claude Code
@netlify /newsletter