Skip to content

Fix missing space between month and year in newsletter header#4298

Merged
mashehu merged 3 commits into
mainfrom
claude/newsletter-date-spacing-alq6g1
Jul 1, 2026
Merged

Fix missing space between month and year in newsletter header#4298
mashehu merged 3 commits into
mainfrom
claude/newsletter-date-spacing-alq6g1

Conversation

@ewels

@ewels ewels commented Jul 1, 2026

Copy link
Copy Markdown
Member

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:

1st {monthName}
{year}

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 + 20261st July2026.

Fix

Put them on a single line with an explicit space:

1st {monthName} {year}

Now renders correctly as "1st July 2026".

🤖 Generated with Claude Code


Generated by Claude Code

@netlify /newsletter

@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for nf-core-main-site ready!

Name Link
🔨 Latest commit 36381c8
🔍 Latest deploy log https://app.netlify.com/projects/nf-core-main-site/deploys/6a451a7ebed8c20008c746d1
😎 Deploy Preview https://deploy-preview-4298--nf-core-main-site.netlify.app/newsletter
📱 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.

@mashehu
mashehu enabled auto-merge (rebase) July 1, 2026 13:40
@github-actions github-actions Bot deleted a comment from netlify Bot Jul 1, 2026
Comment thread sites/main-site/src/layouts/NewsletterLayout.astro Outdated
@mashehu
mashehu merged commit a124025 into main Jul 1, 2026
11 of 13 checks passed
@mashehu
mashehu deleted the claude/newsletter-date-spacing-alq6g1 branch July 1, 2026 13:48
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.

3 participants