Tag: astro

Making my blog dual language with Astro

I've had the peterbabic.sk domain sitting unused for years. Meanwhile this blog has been English-only. Recently I figured why not use both? The Slovak version could help with local SEO and make my content accessible to people who prefer reading in Slovak. The challenge was doing...

Fixing Stripe webhook invalid signature error on Cloudflare

If you're getting a 400 Bad Request with "Invalid signature" from your Stripe webhook on Cloudflare Workers or Cloudflare Pages, the actual problem might not be your webhook secret at all. The symptom The Stripe webhook endpoint returns: `` 400 Bad Request Invalid signature ` In...

Adding comments to my blog with D1 and Server Islands

For years I have been running this blog on Zola without any comment system. The static nature of Zola made adding comments non-trivial and I was not keen on third-party solutions like Disqus or Giscus. When I migrated to Astro (not yet published at the time of writing), the oppor...

Fragment link checking in Astro

In my previous post I covered how Zola validates internal links and anchors at build time. As I'm considering migrating my blog to Astro, I needed to solve the same problem: how do I ensure that fragment links (anchors) actually point to existing headings? Here's how I set up fra...

RouterOS syntax highlighting for Astro

While migrating my blog from Zola to Astro, I ran into an issue with RouterOS syntax highlighting. Astro uses Shiki for code highlighting, and Shiki doesn't include RouterOS out of the box. Here's how I solved it. The problem When building the Astro site, I saw warnings like: ``...