Skip to content

mirzu/mirzu.com

 
 

Repository files navigation

Saral Theme

Built with Astro Lint, Format, and Type Check Deploy to GitHub Pages

A simple & minimal theme for personal blog sites, crafted for Astro framework.

View demo at https://yashjawale.github.io/saral-theme-astro/

View in Astro themes at https://astro.build/themes/details/saral/

Like what you see? Consider starring the repository 🌟

Theme Screenshot

Derived from yashjawale.github.io

Features

  • Image optimization on build
  • Accessible emojis
  • Automatic reading time display for posts
  • Automatic last update status for posts
  • Dark mode support
  • RSS feed
  • Includes GitHub workflows for linting & formatting

Getting started

  • Clone this repository
  • Install dependencies with npm i
  • Start dev server with npm run dev
  • Remove <meta name="robots" content="noindex" /> tag from src/components/BaseHead.astro file
  • Remove .github/workflows/deploy.yml if not deploying to GitHub Pages
  • Update base value in src/consts.ts file - if your site is not in a subdirectory, make it empty string
  • Update favicons & opengraph images (realfavicongenerator.net is a nice site to get the favicons cropped)
  • Update page content & images
  • Publish your site 🚀

Adding a blog post

  • Add your-blog-post.md file under src/content/blog (filename denotes the URL slug)
  • Write content in file using Markdown syntax
  • Add cover image at src/assets/blogimages/<YOUR_SLUG>/cover.jpg - Recommended dimensions: 853x480px
  • For adding images to content, use the folowing syntax for caption support ![Alt text](../../assets/blogimages/<YOUR_SLUG>/imagename.ext)
  • Create a PR & merge after passing workflow checks

Tip

Facing any issues or want a feature? Feel free to create a new issue


Yash Jawale

About

Mike's personal site, based on Saral Astro Theme

Resources

License

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Astro 72.6%
  • JavaScript 12.8%
  • TypeScript 7.5%
  • MDX 5.5%
  • CSS 1.6%