Comment system on a static site without javascript???

So I want to integrate a comment system to my blog.There are many many comment service providers like disqus. Even for a static site, you can add comment support simply by inserting a javascript snippet into the page.

But what about … zero JS?

Adding a html form to each page is easy, submitting comment is easy. But how can I update and render the comments in the post? I don’t mind updating the static site manually on a daily or weekly basis, but it’s still not trivial.

Long story short: my static site generator hugo doesn’t provide enough APIs to do custom stuffs. In this case I want a per-page “hook”, where I can put a script to pull the comments from a server and integrate them..

         FORM & RelPermalink
        +--- HTTP POST -----.
        |                   |             Database or
        |                   v             Flat files
+-------+-----+       +----------------+  +---------+
| Static Site |       | Commment Server|--| Storage |
+-------^-----+       +-+------------+-+  +---------+
        |               |   ^        |
    Generate            |   |        |
        |               |   |        |
    +---+---+   HOOK    |  admin     | Notification
    | HUGO  |<----------+   |        | via Email &
    +---+---+   ?????       |        | Patches
        |                   |        |
+-------+---+  manage  +----+-----+  |
| Markdowns |<---------+ Me       |<-+
| Statics   |<---------+----------+
| Themes    |   Apply
+-----------+   Comments

It seems that hugo has builtin support for disqus, to build the comments into posts in a static manner. Perhaps I can look at how this is done and implement a light-weight disqus…. (fml that thing is commercial)

Oct 6, 2023

[+] click to leave a comment [+]
the comment system on this blog works via email. The button
below will generate a mailto: link based on this page's url 
and invoke your email client - please edit the comment there!

[optional] even better, encrypt the email with my public key

- don't modify the subject field
- specify a nickname, otherwise your comment will be shown as   
- your email address will not be disclosed
- you agree that the comment is to be made public.
- to take down a comment, send the request via email.


Fun with Image Maps and SVGs via benji February 20, 2024

Over the past few weeks I've been playing around with making some images on my website interactive. My "informatics" class in high school taught us some basic HTML. By basic I mean in notepad and writing everything by hand, saving to a...

Goblin Week 2024 via Helvetica Blanc January 26, 2024

It snuck up on me, but I managed to draw my little goblins to celebrate the week! I love my children - they're like awful Pikmin. I've uploaded the whole parade as a print, as well as individual prints for each goblin. There's something very fu…

How to trust gpg keys via Travis Shears Personal Site October 27, 2023

After moving some GPG keys to a new computer I kept getting these trust warnings. It is NOT certain that the key belongs to the person named in the user ID.If you * really * know what you are doing, you may answer the next question with yes. Use this key a…

Generated by openring from webring