“Static” Comments with Gulp, Hugo & Netlify

Detailed description: https://ttntm.me/blog/static-blog-comments-hugo/

GitHub: https://github.com/ttntm/hugo-comments

Description

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/

Leave a comment

Your email address will not be published, required fields are marked with *.

Comments

Posted at: Tue, 27 Oct. 2020, 11:33 UTC By: Ollie

Comment:
Test comment added now! :-D

Posted at: Sat, 19 Sep. 2020, 11:45 UTC By: MyName

Comment:
This is a test comment

Posted at: Wed, 09 Sep. 2020, 07:50 UTC By: Hello World!

Comment:
My first comment. :-)

Posted at: Sun, 30 Aug. 2020, 21:39 UTC By: A

Comment:
Heyy

Posted at: Sat, 08 Aug. 2020, 22:25 UTC By: hello

Comment:
hello world

Posted at: Tue, 04 Aug. 2020, 17:10 UTC By: Brady Hurlburt

Comment:
Testing out. Looks great. I think I'll fork this repo as a starting point for a project. Thanks!

Posted at: Tue, 14 Apr. 2020, 13:51 UTC By: ttntm

Comment:
Updated the styling of this demo site today.

Posted at: Fri, 28 Feb. 2020, 16:43 UTC By: mirek

Comment:
pokus

Posted at: Fri, 28 Feb. 2020, 16:42 UTC By: mirek

Comment:
pokus

Posted at: Thu, 03 Oct. 2019, 07:18 UTC By: Tom

Comment:
Removed external build automation, tried the same with a Netlify notification that triggers on form submissions.

Posted at: Mon, 02 Sep. 2019, 12:07 UTC By: Wald Meister

Comment:
Testing the BaseURL reset

Posted at: Mon, 02 Sep. 2019, 09:42 UTC By: Freak Azoid

Comment:
This comment was created afterr setting up the auto-deploy zap. It should appear within an hour.

Posted at: Mon, 02 Sep. 2019, 09:14 UTC By: Bert Rahm

Comment:
Let's see what happens to the second comment. Already curious...

Posted at: Mon, 02 Sep. 2019, 08:38 UTC By: Sepp Schnorcher

Comment:
This is a test comment to see if this works. Wish me luck.