Comments are now live!

December 18th , 2017

Over the past few days I have been working on tweaking the look and feel of the entire blog page. I have attempted to go for a minimalist and clean design that is easy to read on all formats, from mobile to desktop - please let me know if there any issues with the styling of the website on certain platforms.

We now also have working comments. Previously there was a form that linked to a PHP file that sent the comment as an email to me. Now unfortunately, as we are using github pages to host this site, PHP is not supported, so we got a rather angry unicorn when we tried to access that function.

There are many services out there that support embedding a comment function into blogs, sush as Disqus - which is quite a popular one. I was tempted to use Disqus, however I wanted a way to allow users to comment regardless of whether or not they had a Disqus account. I was adamant to get some form of commenting system working with Jekyll’s use of collections and scripting to send emails of the comments to me, and the use YAML front matter and liquid to sort through comments for each blog post.

Essentially the comments work by filtering through all the files located under the directory ‘_comments’ and sorting said files to their corresponding blog posts, using YAML front matter I can then specify who posted, when they posted and whether it is a new comment thread or reply to an existing comment. The submit comment works by the user selecting if they wish to submit a new comment (default) or reply to a comment thread already posted. The fields of the form then get sent to a Google spreadsheet script and emailed to me, which I then write up into markdown files for Jekyll to generate.

With my endeavours into coding this website and learning (the hard way) how Jekyll and Liquid/Ruby work, I am considering making a portfolio and project section explaining how I went about coding certain aspects of the site, as I feel it may be helpful to some new users of Jekyll - You can already find my website repository on GitHub.

I think that will do for this blog post, hopefully all is well with the design of the website. I will start working on the other pages that my navbar and places link to.

Peace for now, Matt

Share this with your followers:

Comments

Join the discussion below!

John Smith

on the 18th of December 2017, at 9:20am said:

This is a test or sample comment on the "Comments are now live!" blog post. This is to give an example of how comments and reply will look when populated with discussion.

Steve Stevenson

on the 18th of December 2017, at 9:35am said:

This is a test reply to John Smith's comment. I'm not entirely sure how to implement nested comments/replies (a reply to a reply) with this method of comments, hence replies are more like a 'forum' discussion in that they will be sorted chronologically. Post your own comment below.

Ben Dover

on the 20th of December 2017, at 1:45am said:

I am replying to show that you are a man of disaster. Everything oyu touch breaks. Bye


Post a comment

All comments are held for moderation; basic HTML or Markdown formatting accepted.

Name: (required)
E-mail: (required, not published)
Please Select: (hover for comment hint)