Skip to content

Feat/blog#9

Open
niclimcy wants to merge 8 commits intomainfrom
feat/blog
Open

Feat/blog#9
niclimcy wants to merge 8 commits intomainfrom
feat/blog

Conversation

@niclimcy
Copy link
Copy Markdown
Member

@niclimcy niclimcy commented Apr 9, 2026

No description provided.

@cloudflare-workers-and-pages
Copy link
Copy Markdown
Contributor

cloudflare-workers-and-pages bot commented Apr 9, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wpbs-website 547beeb Commit Preview URL

Branch Preview URL
Apr 13 2026, 04:01 PM

@celarye celarye added the enhancement New feature or request label Apr 11, 2026
@niclimcy
Copy link
Copy Markdown
Member Author

niclimcy commented Apr 12, 2026

TODO:

  • tag support
  • hero image support
  • authors split by list (for multiple authors)
  • nicer list for showing all blogs
  • synopsis support

@niclimcy niclimcy force-pushed the feat/blog branch 3 times, most recently from 428b1cf to bc2e305 Compare April 13, 2026 03:10
@niclimcy niclimcy marked this pull request as ready for review April 13, 2026 14:57
@niclimcy niclimcy requested a review from Copilot April 13, 2026 14:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a basic Blog feature backed by MDX posts, adds routes/pages to list and render posts, and updates build tooling/config to support MDX + prerendering.

Changes:

  • Add MDX tooling (Vite MDX plugin + mdx-bundler) and Tailwind typography support.
  • Add blog routes (/blog, /blog/:slug), prerender configuration, and MDX post loading/parsing utilities.
  • Add an initial sample post (posts/hello.mdx) and minor UI/meta updates (NavBar link, OG tags, styling tweaks).

Reviewed changes

Copilot reviewed 15 out of 18 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
vite.config.ts Adds MDX processing via @mdx-js/rollup with frontmatter + pretty-code plugins.
react-router.config.ts Adds prerender paths for blog index + individual posts.
app/lib/mdx-server.ts Implements MDX bundling, frontmatter validation, synopsis extraction, and slug discovery.
app/routes.ts Registers blog routes under a /blog prefix.
app/routes/blog/home.tsx Blog index route: loads posts and renders a list view.
app/routes/blog/$slug.tsx Blog post route: loads a post by slug and renders MDX output.
app/lib/format-date.ts Adds a shared Intl.DateTimeFormat instance for post dates.
posts/hello.mdx Adds a sample MDX post with frontmatter and content.
app/components/NavBar.tsx Adds a “Blog” nav link and scroll-based styling behavior.
app/routes/home.tsx Updates OG meta tags and adjusts hero layout styling.
app/components/ui/card.tsx Tweaks card background styling.
app/app.css Enables Tailwind typography plugin.
.vscode/settings.json Adds MDX to the formatter language list.
.vscode/extensions.json Recommends the VS Code MDX extension.
package.json / pnpm-lock.yaml Adds MDX/blog-related dependencies and updates lockfile.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/lib/mdx-server.ts Outdated
Comment thread app/lib/mdx.ts
Comment thread react-router.config.ts Outdated
Comment thread app/routes/blog/$slug.tsx Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 18 changed files in this pull request and generated 8 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/lib/mdx.ts
Comment thread app/routes/blog/home.tsx Outdated
Comment thread app/routes/blog/$slug.tsx Outdated
Comment thread app/lib/mdx.ts
Comment thread app/components/NavBar.tsx
Comment thread app/routes/blog/$slug.tsx
Comment thread posts/hello.mdx
Comment thread app/lib/mdx-server.ts Outdated
- Use relative paths for components
- Run getComponentFiles once and cache
- Clean up mdx and rename to mdx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants