Implement comment system
Opened this issue · 0 comments
marchbox commented
- https://greenash.net.au/thoughts/2022/03/email-based-comment-moderation-with-netlify-functions/
- https://docs.netlify.com/forms/setup/
Workflow:
- Use Netlify Forms to collect comment submissions
- Use Ajax form for better UX but make sure non-JS works, too
- Should mention that all comments become public upon approval. If they want to contact me directly, go to the Contact link.
- Use Netlify Functions to set up a Scheduled Background Function:
- This function checks all the verified comment submissions
- Uses https://github.com/octokit/octokit.js to create a pull request to send comments to GitHub
- Run this function at 9 AM everyday
- Me review the pull request, approve to merge into
mainstreet
- Netlify rebuild, comments display
- Make some fun idea with avatar?