I’d often wondered why it was necessary to use JavaScript to make webmentions work in Hugo. As it turns out, it’s not:
This is great! More people need to know about Webmentions and Indieweb.
I now have followed up with code and an explainer:
Thanks for sharing.
Just added to my blog and working, I made some css modifications.
I am trying to figure out if there is other way to fetch new webmentions on every build,
If build with command = "hugo --gc --ignoreCache --minify" no new webmentions fetched.
If build wit command = "hugo --minify --gc --ignoreCache --verbose" new webmentions fetched.
I don’t know if this is the proper way to update json on every build.
Truthfully, I gave up on this not long after that post and haven’t revisited the subject. You might check code on @kaushalmodi’s website. It turned out he’d done this long before. ![]()