mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 16:44:56 +02:00
Convert commentsSection from a global function to Alpine.data() registration via the alpine:init event. This is the proper Alpine.js pattern for reusable components — the component is registered in Alpine's internal registry before DOM processing begins, eliminating script loading order issues. Reverts the hacky approach of moving the script tag to <head>.