Samasaur1 / samasaur1.github.io

the jekyll source for my website
https://samasaur1.github.io/
3 stars 0 forks source link

Add comment support to the blog #32

Closed Samasaur1 closed 1 year ago

Samasaur1 commented 1 year ago

Closes #23.

This PR adds a comment field to each post with commenting: open in its metadata (defaults to open). On form submission, comment data is sent to an instance of Samasaur1/jekyll-comments, which uses the GitHub API to create a pull request containing the new comment, as a YAML file in _data/comments/<post id>/<comment id>.yml. I can then approve or reject them by merging or closing the PR.