My personal website used to be written in ASP.NET, and it felt not the right tool for the job. Of course, you don’t need active server pages for a couple of HTML documents, but you do for the blog. There is always WordPress, however it’s too heavy, slow, requires to remove almost everything before desired look-and-feel. No, WP, thanks, next time.
Not speaking of free hosting!
Ok, I’m a fan now, let’s create our awesome blog. We would need a couple of useful things: Comments and Analytics.
By the way, to highlight a Liquid template inside Liquid template we need to use
Don’t forget to close tags with
This was skipped from the example, because Liquid throws syntax errors for nested tags.
disqus.html is located in
_includes folder and contains universal embed code
Disqus asks to provide two config variables, page’s canonical URL and page’s unique ID. To get unique ID we’ll use additional hash generator (author).
We just need to add a snippet to our default page template
Github Pages hosting
Everything is pretty straightforward: we need to push our code to
and add CNAME file for a custom domain. Github gives a good overview on how to
set up a custom domain, subdomains, configure DNS records, differences between CNAME and A, etc,
make sure to check it out.
BTW, Github Pages sets
production for us.