Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A simple, minimal Astro theme for personal blog sites with dark mode, RSS, reading time, and GitHub Pages deployment.
Saral is a simple, minimal theme for personal blog sites built on the Astro framework, providing a no-distraction reading experience with dark mode, RSS, and automated post metadata.
Saral is an open-source Astro theme designed for personal blogs and portfolios. It takes Markdown files placed in src/content/blog as its content source and outputs a static website with automatic reading time, last-update timestamps, and RSS generation. The theme is created by Yash Jawale, derived from his own site at yashjawale.github.io, and is listed in the official Astro themes directory at astro.build/themes/details/saral. It ships with GitHub Actions workflows for linting, formatting, type checking, and deploying to GitHub Pages.
src/content/blog (the filename becomes the URL slug), add a cover image at src/assets/blogimages/YOUR_SLUG/cover.jpg, and merge a pull request; the site builds the new post automatically..github/workflows/deploy.yml workflow after removing the noindex meta tag from src/components/BaseHead.astro.base in src/consts.ts to set a subdirectory or an empty string for a root-domain deployment.To start publishing, clone the repository, install dependencies with npm i, and run npm run dev for a local dev server. After customizing the configuration, remove the noindex meta tag, optionally delete the deploy workflow if you are not using GitHub Pages, and update the content and images. Then publish the site; the included GitHub Actions workflow handles linting, formatting, type checking, and deployment.
Saral is free and open-source. The theme is publicly available on GitHub and can be used for personal or commercial projects without payment.
Yes, Saral is a free open-source theme. You can use it for personal or commercial blogs, and the repository encourages starring it if you find it useful.
Create a Markdown file in src/content/blog (the filename becomes the URL slug), then add a cover image at src/assets/blogimages/YOUR_SLUG/cover.jpg with recommended dimensions of 853 by 480 pixels. After writing content in Markdown, create a pull request and merge it once the workflow checks pass.
Yes, Saral includes built-in dark mode support. Readers can toggle between light and dark themes, and the preference is remembered.
Saral has a preconfigured GitHub Actions workflow for deploying to GitHub Pages. Because it is a static site generated by Astro, you can also host the output on any static hosting service, though the included workflow targets GitHub Pages.
Edit the base value in src/consts.ts. If your site is not served from a subdirectory, set it to an empty string; otherwise, enter the subdirectory path, such as /saral-theme-astro/.
