https://ttntm.me/blog/static-blog-comments-hugo/
GitHub: https://github.com/ttntm/hugo-comments
The comments posted are handled by Netlify Forms and get processed there according to this flowchart: https://bpm.wiki/diagram/Static-comments-with-Netlify-94
During the build process, the comments are obtained from Netlify Forms via their API and put into a comments.json
file by Gulp. In order to make this work on localhost
environments, don’t forget that you’ll need an .env
file within the project directory that stores the necessary Form ID
and API Token
for your own Netlify setup.
Based on: https://css-tricks.com/jamstack-comments/
Your email address will not be published, required fields are marked with *.
Comments
Comment:
Hello
Comment:
teste comment
Comment:
Test
Comment:
Hello world! I'm from India!!
Comment:
This is a test
Comment:
test
Comment:
Test comment added now! :-D
Comment:
This is a test comment
Comment:
My first comment. :-)
Comment:
Hello. And Bye.
Comment:
Heyy
Comment:
hello world
Comment:
Testing out. Looks great. I think I'll fork this repo as a starting point for a project. Thanks!
Comment:
Updated the styling of this demo site today.
Comment:
pokus
Comment:
pokus
Comment:
Removed external build automation, tried the same with a Netlify notification that triggers on form submissions.
Comment:
Testing the BaseURL reset
Comment:
This comment was created afterr setting up the auto-deploy zap. It should appear within an hour.
Comment:
Let's see what happens to the second comment. Already curious...
Comment:
This is a test comment to see if this works. Wish me luck.