![blog-template](https://private-user-images.githubusercontent.com/45694132/408877984-98603992-139b-4e25-a6b5-6ab9af5523fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDgxNTAsIm5iZiI6MTczOTQ0Nzg1MCwicGF0aCI6Ii80NTY5NDEzMi80MDg4Nzc5ODQtOTg2MDM5OTItMTM5Yi00ZTI1LWE2YjUtNmFiOWFmNTUyM2ZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDExNTczMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3YmNlYjZiNGRkNDJlYzY0M2M3NzY3OTAwYjcwODkwNDRhOTRiYjI5NzcwMDI1N2IyNDJkMmIyZmE0NjYyYzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9_KXHOiF6U9F6Kb16r3okBGmY-JS4RTdXcmJkK_6tGg)
minimalistic but opinionated blog template using astro and svelte. aims to be super easy to deploy and use, with a focus on performance and SEO, ease-of-use and design.
See a live demo here (also doubles as a tutorial on how to use this template).
Features:
- ✅ 100/100 Lighthouse performance
- ✅ SEO-friendly with canonical URLs and OpenGraph data (automatically generated)
- ✅ Sitemap support
- ✅ RSS Feed support
- ✅ Markdown support
- ✅ Pagination
- ✅ Syntax highlighting (+ copy button)
- ✅ Dark and light mode with toggle button or auto-detect
- ✅ Search included
- ✅ Tags for posts
- ✅ Super easy to deploy as a static site
- ✅ Includes some prebuilt components for you to use
- ✅ Easy to edit by editing the markdown directly
the demo blog doubles as a tutorial on how to use this template:
-
Fork this repository by clicking on "Use template" (note: this repository per default uses github actions which are only free for public repositories).
-
In your repository settings, set up github pages to deploy using github actions (SETTINGS -> PAGES -> SOURCE: Github Actions)
-
Set up your blog info in
src/config.json
(most importantly changeSITE
to your deployment url, e.g. for github pageshttps://<your-github-username>.github.io/
andBASE
to your base path, e.g. for github pages/<your-repo-name>
) -
Your blog should be live in about 1 minute at
https://<your-github-username>.github.io/<your-repo-name>
-
Add your blog posts in
src/content/blog/
-
Add your info in
src/content/info/
:
description.md
is used for the homepage descriptionabout.md
is used for the about page
Search currently only works in production mode (i.e. when running npm run build
) not in dev mode (npm run dev
).
Adopted from the default astro blog template when running npm create astro@latest
.
MIT.