Better Tweets on this site
Before today I was using astro-embed to handle tweets. I’ve just added a new <Tweet> component which looks like this.
Astro @astrodotbuild Astro 7.2 is out now! Experimental incremental static builds are here: only re-render the pages that actually changed and watch your build times drop. Plus opt-out session support, background astro preview, and relative logger entrypoints.
astro.build/blog/astro-720/
astro.build/blog/astro-720/
It renders the tweet at build-time and links out to xcancel.com instead of X (except for the little 𝕏 icon which does point to the original) and properly supports embedded images.
You can see some examples in the styleguide.