From 1a6db0574593c070470d90c0022105b2ec71ef6d Mon Sep 17 00:00:00 2001 From: Medium Fries Date: Sat, 22 Dec 2018 22:26:25 -0800 Subject: [PATCH] easier to rebuild pages/posts now --- rebuild.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 rebuild.sh diff --git a/rebuild.sh b/rebuild.sh new file mode 100755 index 0000000..4a4f3ee --- /dev/null +++ b/rebuild.sh @@ -0,0 +1,17 @@ +# Because sometimes you just have to rebuild everything +rootDir='./_site/' +post() { + for file in ./markdown/post/* + do + fileName=$(basename $file) + pandoc $file --css style.css -s -o $rootDir/post/${fileName%.*}.html + done +} + +page() { + for file in ./markdown/pages/* + do + pandoc $file --css style.css -s -o $rootDir/page/${fileName%.*}.html + done +} +"$@"