Setup Steps

Lately I was struggling to find free time for the blog. I heard about GitHub pages but never looked at the whole process. Jekyll Now caught my eye.

The beauty of GitHub pages is that you write a content in Markdown, push post file to the repository and rest is taken care by GitHub and Jekyll. I decide to give it a try to simplify my blogging process.

Here are the steps i followed: 1. Setup Jekyll locally to test the process: Install Jekyll on Windows

cd C:/Railsinstaller 
gem install github-pages
  1. Add Python for highlighting source code I.e. pygments Please note for pygments to work you need install python 2.7 and it to path c:\Python;

  2. I used Lanyon theme : Poole, Hyde, Lanyon themes

  3. Write the post in R Markdown, for example using R Studio and convert to Jekyll Markdown using KnitPost

To create Jekyll site:

jekyll serve --watch

and browse to http://localhost:4000/

Once you happy with results, commit your changes to repository and check your site.

 git add .
 git commit -m"new post"
 git push origin master

I did not found a feature in Markdown to open a link in new window, but following question / answer solves the problem: Open links in the new window

var links = document.links;

for (var i = 0, linksLength = links.length; i < linksLength; i++) {
   if (links[i].hostname != window.location.hostname) {
       links[i].target = '_blank';
   } 
}

If you're using jQuery it's a tad simpler...

$(document.links).filter(function() {
    return this.hostname != window.location.hostname;
}).attr('target', '_blank');

R Blogs that are using Jeykill and GitHub pages:

Additionally

Running and publishing results / reports of automated stadies / strategies becomes very simple. for example each before market open

  • run strategy back-test create report / list of trades
  • push final Markdown file with details to GitHub The report will automatically be published.

This process can be scheduled and 100% automatic.

Jeykill tips

  • I used Formspree to setup contact me page. It is super easy to use, free service. Another alternative I considered is MailChimp

  • For Comments, I used disqus I add comments: true for pages i want to have comments. My current plan is to keep this flag true for only recent pages (i.e. month old). And once there is over a month since the post, close comments and export comments from disqus and merge exported comments with actual post using. There is more reading to do:

Adding Comments:

Adding Search:

  • indexden http://jshum.github.io/blog/2013/01/21/adding-search-to-jekyll http://martin-thoma.com/jekyll-and-git
  • github search