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 blog
pnpm install
pnpm dev
Open 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.tsx
to change the global layout. - Modify
src/components/layout.tsx
to adjust the blog's main layout. - Update styles in
src/app/globals.css
or 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.