A modern, SEO-optimized blog starter template built with Next.js 14, TypeScript, and Tailwind CSS. This template focuses on performance, SEO best practices, and a great developer experience.
The easiest way to deploy your blog is to use the Vercel Platform:
# Clone the repository
git clone https://github.com/GanLiuuuu/nextjs-seo-blog-starter.git my-blog
# Navigate to the directory
cd my-blog
# Install dependencies
npm install
# Start the development server
npm run dev
Visit http://localhost:3000 to see your blog.
nextjs-seo-blog-starter/
āāā app/ # Next.js 14 app directory
ā āāā page.tsx # Home page
ā āāā posts/ # Post pages
ā āāā not-found.tsx # Custom 404 page
āāā components/ # Reusable React components
āāā content/ # Blog posts in markdown
āāā lib/ # Utility functions and data fetching
āāā public/ # Static assets
ā āāā images/ # Images including previews
āāā styles/ # Global styles and Tailwind config
Create new blog posts by adding markdown files to the content/posts
directory:
---
title: "My First Blog Post"
date: "2024-01-01"
tags: ["nextjs", "react"]
excerpt: "A brief description of your post"
coverImage: "/images/posts/my-first-post.jpg" # Optional cover image
---
Your content here...
This template uses Tailwind CSS for styling. Customize the design by modifying:
tailwind.config.js
- Theme configurationstyles/globals.css
- Global stylesUpdate site metadata in app/layout.tsx
:
export const metadata = {
title: 'Your Blog Name',
description: 'Your blog description',
// ... other metadata
}
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use this template for your own blog!
If you find this template helpful, please consider giving it a āļø on GitHub!