2 hours ago · Tech · hide · 0 comments

I’ve been using Pure Blog for a while now and I absolutely love its simplicity and speed. However, for the longest time, I had no idea that Pure Blog supports hooks! Which in turn you can use to do e.g. YouTube embeds. I had been asking about that instead of reading the actual documentation. But, dear reader, I have now read the docs. And I have discovered hooks, and they are a game-changer. It was exactly what I was looking for. I can keep my Markdown files clean and keep full control over how assets and embeds are rendered. Hooks are a simple way to make Pure Blog do extra things when something changes on your site. Think of them like little trip‑wires: when a post is published, updated, or deleted, you can run your own code. Discovering hooks gave me two major wins (read on). But it also meant I had a bit of migration work to do on my existing blog posts. Here is what I set up and how I migrated hundreds of old Markdown files seamlessly. I use two hooks: one for image handling and…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.