Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(saas): Blog feature using next-mdx-remote #14

Merged
merged 9 commits into from
Apr 20, 2024

Conversation

alifarooq9
Copy link
Owner

@alifarooq9 alifarooq9 commented Apr 16, 2024

Feat: Add Blog Functionality to SaaS Starter

This pull request introduces a robust blog feature to the SaaS starter kit, allowing you to easily create and manage blog content within your SaaS application.

Key features

  • Blog Listing and Individual Post Pages: Displays a list of all blog posts and dedicated pages for each individual post.
  • MDX-based Content: Leverages MDX files for blog content, enabling you to write in Markdown with the flexibility to embed React components.
  • Static Site Generation (SSG): Utilizes Next.js SSG capabilities to pre-render blog pages at build time, optimizing performance and SEO.

How to Add New Blog?

  1. Create a MDX File: Add a new MDX file within the src/content/blog directory. The file name will determine the blog post slug.
  2. Define Metadata: Include frontmatter at the beginning of your MDX file to specify metadata such as title, publication date, tags, and a brief description.

Metadata Format:

---
title: "Your Blog Post Title"
slug: "your-blog-post-slug"
publishedAt: "2023-11-29" 
readTime: "5 min"
tags: ["saas", "productivity"]
description: "A concise summary of your blog post"
tumbnail: "https://path/to/your/image.jpg" 
---

Your blog post content here...

Copy link

vercel bot commented Apr 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rapidlaunch-saas ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 20, 2024 11:57am
rapidlaunch-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 20, 2024 11:57am

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alifarooq9 and the rest of your teammates on Graphite Graphite

@alifarooq9 alifarooq9 marked this pull request as ready for review April 20, 2024 12:09
@alifarooq9 alifarooq9 merged commit 77caa70 into main Apr 20, 2024
7 checks passed
@alifarooq9 alifarooq9 deleted the 04-17-feat_saas_blog_feature_using_next-mdx-remote branch April 20, 2024 16:42
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.

1 participant