Adding Alpine.js to Eleventy
posted: Sun, Aug 30, 2026 | tagged: dev web
Reference Links:
let's add some interactivity to this blog thing of mine
While my last post stated furiously why I'm deciding not to learl JS, I'll continue to stamp my feet and be beligerent. In the meantime, I decided to add a quality of life interactive improvement to the pages that feature codeblocks. On these pages you'll now see a copy button that will allow you to copy the code to your clipboard.
I know I share some next level code here 😉 that absolutely must be reused elsewhere. We don't need to kid anyone here.
so, why? 🤷
While you aren't seeing earth shattering code being demonstrated here now, I do have ideas and I do like to tinker. So this fed both instincts and sets me up for future projects.
I've been working quite heavily with AI, and I have a few projects that might make an appearance in the blog at some point. As such, I figured what the heck.
I also did look at HTMX by way of a suggestion, however I do not want to include a back-end to this site at this time. By remaining 100% statically driven, the attack surface is minimized. I already had a former WordPress site I hosted for a short time get hacked 5 ways from Sunday, and it was a pain to restore. I'm pretty content with this path for now. No database, no server-side rendering or interpretation. Just a bunch of static HTML, CSS and a dash of JS here and there.
but I thought no JS?
To that I say Claude is my copilot. I didn't write the changes to my .eleventy.js file, my buddy Claude did based on my prompts and my review of the code. In essence, I'm in the loop and driving.
But I have to say, the thread support in Zed works very nicely. It creates a good flow and cohesive experience while working through these changes, and Zed has great git support so I can easily track and find the changes. If you haven't checked it out, Zed is clean, and a joy to work with. Zed has become my default editor while running on Linux (and when at work MacOS).
And if you noticed inline emojis, well I may have added one other element to the blog.
Until the next time...👊