Astro Sanity Minimal Starter screenshot

Astro Sanity Minimal Starter

Author Avatar Theme by Treefarmstudio
Updated: 15 Oct 2022
105 Stars

Categories

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:

  1. Clone the repo and navigate to the root folder.
  2. Set up Sanity:
    • Install Sanity CLI by running npm install -g @sanity/cli.
    • Open a terminal in the root folder and go to the sanity folder.
    • Run sanity install and sanity init to initialize Sanity. Follow the prompts and create a Sanity account if needed.
    • Rename .env.template to .env and update PUBLIC_SANITY_PROJECT_ID with your token ID.
  3. Manage Sanity Studio:
    • Run sanity install and sanity start in the terminal at the sanity folder.
    • Access your Sanity Studio at http://localhost:3333, and copy the project ID from Project info section.
  4. Start Astro site:
    • Open a terminal at the astro folder.
    • Run npm install and npm start to launch the Astro site at http://localhost:3000.
    • Use npm run build to locally build for production.

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.