github pages website for
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This is my blog hosted at powered by GitHub pages

It based on Daktilo, a Jekyll theme from Motaquillah Maddane.

How to build and run locally (ubuntu 16.04)

sudo apt-get install ruby2.3 ruby2.3-dev
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf libc6-dev ncurses-dev automake libtool
sudo gem install bundler
bundle install
bundle exec jekyll serve

The site is then available at http://localhost:4000

How to merge all the posts together into one file?

This script is a quick hack to convert many posts into a single post. It can be used to aggregate up everything into a one-page take away.

cd _posts
cat *aftdiw* >
rpl -e "subtitle:" "\n####"
rpl -e "title:" "#"
rpl -qe "categories: [photography]\n---" ""
rpl -q "layout: post" ""
head -6 > temp.header.txt
grep -v "date:   2017" >
cat temp.header.txt >
rm temp.header.txt

How to separate content from the post itself, for easier joining

The script above is helpful to aggregate content into one page if the author has not provided single page versions of series. The below is the 'right' way to separate markdown content from presentation when using Jekyll. This advice is based on this comment

  1. Extract or author the markdown post content into it's own file and subdirectory in _includes. Just the content, not the metadata at the top.
  2. Your original post will now just contain the metadata header. Add a bit of code below this metadata to include the content:
{% capture the_content %}{% include aftdiw/ %}{% endcapture %}
{{ the_content | markdownify }}
  1. Make a new post for your 'one-pager' that has multiple entries of the above code for all the posts you want to combine.

Doing the above, makes for a very flexible content/presentation separation. As pure markdown, it should be easier to convert it into other formats as need be.