Skip to content

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Feb 3, 2026

Summary

  • Derive banner content from BLOG_SIDEBAR[0] instead of hardcoding values
  • Inline the banner script directly in shared.ts
  • Remove .vitepress/config/inlined-scripts/banner.js and the empty directory

Now when a new blog post is added to sidebar.blog.json, the banner will automatically update to point to it.

🤖 Generated with Claude Code

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for oxc-project ready!

Name Link
🔨 Latest commit c3b3703
🔍 Latest deploy log https://app.netlify.com/projects/oxc-project/deploys/6981777ba6f83f0008eca8dc
😎 Deploy Preview https://deploy-preview-860--oxc-project.netlify.app
📱 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.

Derive banner content from the first entry in sidebar.blog.json instead
of hardcoding values. This eliminates the need to manually update both
banner.js and shared.ts when changing the banner.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@Boshen Boshen force-pushed the refactor/auto-banner-from-latest-blog branch from f6e46fa to c3b3703 Compare February 3, 2026 04:20
@Boshen Boshen enabled auto-merge (squash) February 3, 2026 04:22
@Boshen Boshen merged commit 979d7d9 into main Feb 3, 2026
6 checks passed
@Boshen Boshen deleted the refactor/auto-banner-from-latest-blog branch February 3, 2026 04:23
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