# Building overhaul Apart from the switch to a more _night friendly_ site style-sheet I've also now switch to a new build system for my not-a-blog. Full script at the bottom. [Repo link](https://gitlab.com/shockrah/site-generator). The nice thing about this new script? Way more features, more _unixy_ so it ends up being really straight forward to use, oh and it has a nice name now **gensite**. The only major dependency it has is `pandoc` but I'm slowly going to phase that out for another script which accomplishes the same thing so far; it just can't do tables yet. Anyway I've been messing about with more shell scripting things as I've been _ded_ for nearly 3 weeks on account of a really epic eye infection which has left me needing glasses. ``` #!/bin/bash # Uses pandoc to turn markdown into html for my personal blog mirror=.mirror/ assert_arg() { [ -z $1 ] && echo No argument provided && exit 1 } mirror_scaffold() { # Setup mirror directory so that we can later truck through building new posts and pages mkdir -p $mirror/ cp -r media/ $mirror/media/ cp partials/style.css $mirror/ } fix_tables_imgs_pure() { sed -i "s/{TITLE}/