Astro RSS Feeds with Full MDX Content
Discover how to use Astro's Container API to include fully rendered MDX content—components and all—in your RSS, Atom, and JSON feeds.
All the articles with the tag "Astro".
Discover how to use Astro's Container API to include fully rendered MDX content—components and all—in your RSS, Atom, and JSON feeds.
Learn how to implement dark and light modes on your website using pure HTML and CSS—no JavaScript required! This guide covers automatic color scheme switching based on the user's system preferences, custom toggles with JavaScript, storing preferences in local storage, and best practices for Astro sites.
A new major version of Astro has landed a while ago and it's time for me to upgrade this website.
Astro uses Shiki syntax highlighting by default. It works great but it's missing one core feature, line numbers. In this article I explain how to add line numbers using CSS only and making it work with TailwindCSS.
Todays browsers support responsive images out of the box and for the best user experience it is necessary to serve images responsively. It's not trivial to implement a more advanced solution. This is the story about why and how I serve a multitude of formats and sizes for images on this blog.