From 7bac76170fa0801b24ea3d121af192b68c4b4bcd Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Sun, 16 Dec 2018 23:09:29 -0800 Subject: [PATCH] more utility from make script --- make.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/make.sh b/make.sh index 641a397..80be495 100755 --- a/make.sh +++ b/make.sh @@ -11,15 +11,12 @@ post() { fi } -# mainly to create new post files -writep() { - if [ -z $1 ] - then - echo 'No filename given' - exit 0 - fi - cp ./markdown/template.md ./markdown/post/$1 - vim -c "Goyo" ./markdown/post/$1 +updatestyle() { + # make sure that all sub styles are kept up to date with the root stylesheet + cp style.css ./page/bstyle.css + sed -i 's/./fonts/../fonts//g' ./page/bstyle.css + cp style.css ./post/bstyle.css + sed -i 's/./fonts/../fonts//g' ./post/bstyle.css } page() { @@ -34,7 +31,10 @@ page() { # literally just updates the index file nothing else index() { + # base index file pandoc ./markdown/index.md --css style.css -s -o index.html # typing succs + # next we inject the navbar html stuff + sed -i '7r ./templates/navbar.html' index.html } help() {