Overview:
Astro Sanity Minimal Starter is a blog webiste template that leverages Astro and Sanity.io for a headless CMS setup. It offers excellent SEO capabilities, a customizable CMS, and performance best practices, making it an ideal foundation for a personal blog with posts written in markdown.
Features:
- Customizable headless CMS with Sanity.io
- Excellent SEO Built In
- Open Graph Tags (Twitter, Facebook, etc.)
- User Declared Canonical URLs
- RSS Feed and XML Sitemap
- Robots.txt support
- JSON LD Schema integration
- Extremely minimal styles
- Performant Google Fonts Setup
Installation:
- Clone the repo and navigate to the root folder.
- Set up Sanity:
- Install Sanity CLI by running
npm install -g @sanity/cli. - Open a terminal in the root folder and go to the
sanityfolder. - Run
sanity installandsanity initto initialize Sanity. Follow the prompts and create a Sanity account if needed. - Rename
.env.templateto.envand updatePUBLIC_SANITY_PROJECT_IDwith your token ID.
- Install Sanity CLI by running
- Manage Sanity Studio:
- Run
sanity installandsanity startin the terminal at thesanityfolder. - Access your Sanity Studio at http://localhost:3333, and copy the project ID from Project info section.
- Run
- Start Astro site:
- Open a terminal at the
astrofolder. - Run
npm installandnpm startto launch the Astro site at http://localhost:3000. - Use
npm run buildto locally build for production.
- Open a terminal at the
Summary:
Astro Sanity Minimal Starter provides a solid foundation for a blog website with its seamless integration of Astro and Sanity.io. With essential features like SEO optimization, customizable CMS, and minimal styling, it offers a clean and efficient solution for those looking to set up a personal blog quickly. The installation process outlined ensures a smooth setup of both Sanity Studio and the Astro site, making it convenient for users to get started with their blogging journey.