A modern, fast, and SEO-friendly blog template built with Astro and TailwindCSS. Perfect for developers, writers, and content creators who want a minimalist yet feature-rich blog.
- ⚡️ Lightning Fast: Built with Astro for optimal performance
- 🎨 Beautiful Design: Clean and modern design with Tailwind CSS
- 📱 Fully Responsive: Looks great on all devices
- 🌙 Dark Mode: Automatic and manual dark mode support
- ✍️ MDX Support: Write your blog posts in MDX
- 🔍 SEO Optimized: Meta tags, sitemap, and RSS feed
- 🚀 Perfect Lighthouse Score: 100/100 in all categories
- 🔤 Typography: Beautiful typography with Inter font
- 📊 Analytics Ready: Just add your preferred analytics
- 🔒 Type Safe: Written in TypeScript for better development experience
- Clone this repository
git clone https://github.com/xahidex/modern-astro-blog.git my-blog
cd my-blog- Install dependencies
npm install- Start development server
npm run dev- Build for production
npm run build- Add your blog posts as MDX files in the
src/content/blogdirectory - Include frontmatter with the following fields:
---
title: 'Your Post Title'
description: 'A brief description of your post'
pubDate: '2024-03-19'
updatedDate: '2024-03-20' # Optional
heroImage: '/path/to/image.jpg' # Optional
---
Your content here...-
Site Configuration: Update
astro.config.mjs- Change the site URL
- Modify markdown configuration
- Add or remove integrations
-
Styling: Modify
tailwind.config.mjs- Update colors
- Change typography
- Add new theme extensions
-
Components: Customize components in
src/components- Header
- Footer
- Blog cards
- Theme toggle
-
Content: Update content in
src/pages- About page
- Home page
- Blog index
/
├── public/
├── src/
│ ├── components/
│ ├── content/
│ │ └── blog/
│ ├── layouts/
│ └── pages/
└── package.json
This project is open source and available under the MIT License.
Contributions are welcome! Feel free to:
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
If you find this template helpful, please consider:
- ⭐ Starring the repository
- 🐛 Reporting bugs
- 🔀 Submitting pull requests
- 📢 Sharing with others
- GitHub: @xahidex
- LinkedIn: @xahidex
- Bluesky: @xahidex.com
- Astro for the amazing framework
- Tailwind CSS for the utility-first CSS
- Inter for the beautiful typography