Say »Hello« to Staticman
Recently, I stumbled upon Staticman, which seems like a nice solution for comments on static sites (such as this). Today I implemented Staticman into binfalse.de :)
The idea is, that you have your static site version controlled at GitHub. Then you can add the Staticman App to your repository and add some configuration file, so Staticman knows where and how to save the comments. Also add a form to your static site, that sends the commenting user with the form values to an API page of Staticman.
Staticman will then create the necessary YAML files and send you a pull request to the corresponding repository. Thus, you only need to accept the PR and your site will rebuild with the new comment. Pretty smart I think :)
Integrating Staticman is pretty easy. Just follow the step-by-step guide at staticman.net/docs/index.html.
In contrast to many other approaches you still own the comment and don’t need to load it from some third party. The only privacy concern is, that users need to contact the Staticman API for sending the form values. However, that seems to be rather harmless compared to what is the default out there… As it’s still a concern, you can always use any of the other options to send comments. I’ll keep listing them above the comment form. Thus, it’s up to the user what’s more convenient/important :)
If you’re curious, I’d be happy if you give it a try!
- blog (17) ,
- staticman (1) ,
- explained (43) ,
- jekyll (4) ,
- yaml (1) ,
- comment (1) ,
- private (31) ,
- remote (22) ,
- git (8) ,
- social (3) ,
- trick (61) ,
- userinteraction (30) ,
- web (8)
Leave a comment
There are multiple options to leave a comment:
- send me an email
- submit a comment through the feedback page (anonymously via TOR)
- Fork this repo at GitHub, add your comment to the _data/comments directory and send me a pull request
- Fill the following form and Staticman will automagically create a pull request for you:
7 comments
Hi! Testing commenting system. kthankxbye!
my messsage
also testing…
also testing…
also testing…
test new token
testing…