Setup Steps
31 Oct 2014Lately 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
-
Add Python for highlighting source code I.e. pygments Please note for
pygments
to work you need install python 2.7 and it to pathc:\Python;
-
I used Lanyon theme : Poole, Hyde, Lanyon themes
-
Write the post in R Markdown, for example using R Studio and convert to Jekyll Markdown using KnitPost
To create Jekyll site:
and browse to http://localhost:4000/
Once you happy with results, commit your changes to repository and check your site.
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
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:
- Jekyll Disqus comments
- Example YAML file in _comments
- Adding a static comments system to my Jekyll build
- Jekyll::StaticComments
Adding Search:
- indexden http://jshum.github.io/blog/2013/01/21/adding-search-to-jekyll http://martin-thoma.com/jekyll-and-git
- github search