This is an opensource blog tool designed as a starting point for you to make your own.
- Node.js (v14 or later)
- pnpm
git clone https://github.com/stanislas7/blog.git
cd blogpnpm installpnpm devOpen http://localhost:3000 with your browser to see the result.
src/: Contains the source codeapp/: Next.js app router pagescomponents/: React componentsposts/: MDX blog posts
public/: Static assets
Create a new .mdx file in the src/posts/ directory. Add frontmatter to your MDX file:
Create a new .mdx file in the src/posts/ directory.
Write your article content using Markdown and MDX syntax. The new article will automatically appear on the homepage.
You can customize basic blog settings in the blog.config.json file in the root directory.
Current configuration options:
blogName: The name of your blog (displayed in the header and title)
Example blog.config.json:
{
"blogName": "Your own blog name"
}- Edit
src/app/layout.tsxto change the global layout. - Modify
src/components/layout.tsxto adjust the blog's main layout. - Update styles in
src/app/globals.cssor use Tailwind classes directly in components.
This blog can be easily deployed on platforms like Vercel or Netlify. Follow their respective documentation for deploying Next.js applications.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.