Comments on a static site, inspired from @philhawksworth/jamstack-comments-engine. Uses emails for moderation. https://open-jamstack-comments.netlify.app/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
dependabot[bot] e7c52d2cbe
Merge pull request #3 from hirusi/dependabot/npm_and_yarn/node-fetch-2.6.1
5 months ago
.forestry Initial commit 9 months ago
eleventy Show comments on article pages 9 months ago
gulp_tasks Comment data generation 9 months ago
src Remove about page from navigation 9 months ago
.babelrc Initial commit 9 months ago
.editorconfig Initial commit 9 months ago
.eleventy.js Show comments on article pages 9 months ago
.eleventyignore Comment data generation 9 months ago
.env.example Add example env file 9 months ago
.gitignore Comment data generation 9 months ago
.nvmrc Initial commit 9 months ago
.prettierignore Initial commit 9 months ago
.prettierrc Initial commit 9 months ago
LICENSE Create LICENSE 9 months ago
README.md Remove WIP status 9 months ago
gulpfile.babel.js Initial commit 9 months ago
package-lock.json Bump node-fetch from 2.6.0 to 2.6.1 5 months ago
package.json Bump node-fetch from 2.6.0 to 2.6.1 5 months ago
paths.js Initial commit 9 months ago
tailwind.config.js Initial commit 9 months ago

README.md

Open JAMstack Comments

Inspired by Phil Hawksworth's Jamstack Comments Engine. Uses 📬 email for comment moderation.

Configuration

Environment Variables

  • NETLIFY_PAT - personal access token for Netlify API
  • NETLIFY_API_ID - API ID from the Settings page. This is the Site ID.
  • APPROVED_COMMENTS_FORM_ID - form ID of the form where approved submissions are moved
  • SENDGRID_API_KEY - key received from Sendgrid

Email Web API

I use Sendgrid. They have a free 100 mail/day limit (pretty generous) and a JavaScript library for communicating with their API.

  • Configure the SENDGRID_API_KEY as listed above.
  • Then update ownerEmail and siteName in the notify-owner.js function.