- sh, grep, curl
- MultiMarkdown
- inotify-tools (optional)
$ cd colbyolson.com
# set the location of the blog
$ echo "export BLOG_PATH=/var/www/colbyolson.com" >> ~/.bashrc
$ source ~/.bashrc
# NOTE: docroot is $BLOG_PATH/public
$ mkdir -p $BLOG_PATH
$ ln -s $PWD $BLOG_PATH
# install the script to download a new background image
$ cp lib/background /usr/local/bin/
# install the cron job to download a new background every 15m
$ cp lib/change-background /etc/cron.d/
$ cd $BLOG_PATH
# create a page
$ echo "# About" > pages/about.md
# create a post
$ echo "# A post" > posts/a-new-post.md
# posts become index
$ cat pages/index.md
\# A post
# create a draft
$ lib/draft filename goes here
$ vim drafts/filename-goes-here.md
# publish a draft
$ mv drafts/filename-goes-here.md posts/
# build the site
$ lib/build
# automatic building
$ lib/monitor &
# stop building
$ lib/unmonitor