satnaing / astro-paper

A minimal, accessible and SEO-friendly Astro blog theme
https://astro-paper.pages.dev/
MIT License
2.13k stars 440 forks source link

refactor: use fontsource to avoid CLS #255

Open Miguelburitica opened 5 months ago

Miguelburitica commented 5 months ago

Instead of using the Google Fonts API, I added the font using the Fontsource feature in Astro. This approach makes it easier to switch fonts and improves the Lighthouse score by moving it from a range of 94-100 (when using Google Fonts) to a solid 99. Thank you for the blog template man, it was very helpful. I'd love to contribute to the project!

satnaing commented 4 months ago

Hello @Miguelburitica Thanks for your interest in contributing to this project.

After checking out this PR and triednpm run build, I encounter this error

Screenshot 2024-02-18 at 8 36 56 PM