Skip to content

Fix blog listing going empty when a post is scheduled - #6041

Open
sumitshinde-84 wants to merge 2 commits into
mainfrom
fix-future-post-blog-list
Open

sumitshinde-84 wants to merge 2 commits into
mainfrom
fix-future-post-blog-list

Conversation

@sumitshinde-84

@sumitshinde-84 sumitshinde-84 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Any future-dated (scheduled) post empties the blog listing and fails the link check. This is what's failing #6035.

isFuturePost() called useRuntimeConfig(), but only for future-dated posts. In useBlogList, the author page and ExploreMoreContent it runs inside a useAsyncData callback after an await, where there's no Nuxt instance (NUXT_E1001), so the call throws. The listing then comes back empty, the id="sign-up" anchor that only renders with a featured post disappears, and every page linking to /blog/#sign-up from the nav fails the link checker (~1,360 errors). main only passes because no post is currently scheduled.

Change

  • isFuturePost(date, isProductionContext) no longer calls a composable.
  • New useIsFuturePost() reads the flag in setup and returns a check that is safe to call after an await. All four callers use it.
  • The blog post page now also leaves scheduled posts out of its related-posts payload, so their titles aren't shipped in every post page's HTML before their date. They were already hidden on screen.

Also fixed: integration README anchors
The anchor check was also failing on /integrations/node-red-contrib-anker-solix. Its README headings start with a flag emoji ("🇬🇧 Overview (English)"), which slugs to -overview-english, so the README's own #overview-english link missed it. rewriteIntegrationLinks already repairs links that differ from a heading ID only by dots; it now also ignores a leading or trailing hyphen.

isFuturePost() called useRuntimeConfig() only for future-dated posts, and
several callers run it inside useAsyncData after an await, where there is
no Nuxt instance. The call threw, the blog listing came back empty, and the
nav's /blog/#sign-up anchor broke the link check on every page.

Read the production flag in setup via useIsFuturePost() and pass it in.
Also leave scheduled posts out of the post page's related-posts payload.
A heading that starts with an emoji ("🇬🇧 Overview (English)") slugs to
"-overview-english", so the README's own "#overview-english" link missed it
and failed the anchor check on /integrations/node-red-contrib-anker-solix.
@netlify

netlify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for flowfuse-website ready!

Name Link
🔨 Latest commit 01f775a
🔍 Latest deploy log https://app.netlify.com/projects/flowfuse-website/deploys/6b00456e50ab173f723f2385
😎 Deploy Preview https://deploy-preview-6041--flowfuse-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 84 (🟢 up 20 from production)
Accessibility: 98 (no change from production)
Best Practices: 100 (no change from production)
SEO: 85 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for flowfuse-website ready!

Name Link
🔨 Latest commit 1e98cc3
🔍 Latest deploy log https://app.netlify.com/projects/flowfuse-website/deploys/6b00476c3478ddfd5a16231e
😎 Deploy Preview https://deploy-preview-6041--flowfuse-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 78 (🟢 up 14 from production)
Accessibility: 98 (no change from production)
Best Practices: 100 (no change from production)
SEO: 85 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
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