A commenting system for Jekyll
DEPRECATED: This project is no longer maintained. Please see the Node.js version instead.
All the information about this project is described in this blog post.
Before you start the installation, you need to know the primary group of your web server's user. If you're using Apache, try
groups apache
orgroups www
. For these instructions, we'll useapache
as the web server's group andec2-user
as the regular user.
composer install
sudo chgrp -R apache YOUR-REPO
sudo chmod -R 774 YOUR-REPO
sudo usermod -a -G apache ec2-user
config
file with the following parameters:variable | role | variables |
---|---|---|
GIT_USERNAME |
Your GitHub username | |
GIT_REPO |
The relative path to the repository folder | |
GIT_REPO_REMOTE |
The GitHub path to the repository | |
GIT_USER |
The name to appear in the commits | |
GIT_EMAIL |
The email address to appear in the commits | |
COMMENTS_DIR_FORMAT |
Path and format for the comments directory | @post-slug |
COMMENTS_FILE_FORMAT |
Path and format for the comments files | @timestamp , @hash |
.gittoken
echo {THE-TOKEN} > .gittoken
Edit the fields and the validation in index.php
to fit your needs
POST your form data to index.php
You should be good to go! Ping me on Twitter if you have any questions.
I need help! If you think this approach to a commenting system for Jekyll is interesting, share your ideas and pull requests and let's make it better.