Skip to content

colby/colbyolson.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colbyolson.com

dependencies

install

$ 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/

usage

$ 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

About

Bash driven personal website and blog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages