๐๐๐ถ๐น๐ฑ๐ถ๐ป๐ด ๐ ๐๐น๐ผ๐ด ๐ช๐ถ๐๐ต ๐๐๐๐ฟ๐ผ
I had a domain. I wanted a blog. I chose Astro. Astro ships zero JavaScript by default. It renders pages statically. This makes the site fast.
I followed these rules:
- Use Markdown for posts.
- Build for mobile first.
- Add light and dark modes.
- Aim for high performance.
I organized my project files:
- public for favicons.
- components for UI.
- content for posts.
- layouts for page shells.
- pages for the final view.
I fixed two problems:
- I changed colors for better contrast.
- I shrank my fonts. I reduced a font from 300KiB to 70KiB.
The result is a perfect performance score.
Source: https://dev.to/ethanhawksley/building-an-astro-blog-1a95