From abd341bb8746ec1d388aae37d9ee4468db80dc27 Mon Sep 17 00:00:00 2001 From: Medium Fries Date: Sat, 22 Dec 2018 22:47:01 -0800 Subject: [PATCH] renamed file and nearly replaced virgin make file with chad rebuild everytime file --- rebuild.sh => build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) rename rebuild.sh => build.sh (53%) diff --git a/rebuild.sh b/build.sh similarity index 53% rename from rebuild.sh rename to build.sh index 4a4f3ee..0b118ec 100755 --- a/rebuild.sh +++ b/build.sh @@ -14,4 +14,18 @@ page() { pandoc $file --css style.css -s -o $rootDir/page/${fileName%.*}.html done } + +style() { + # Updating index style + cp style.css $rootDir/style.css + + # Updating page style + cp style.css $rootDir/page/style.css + sed -i 's/(.\/fonts/(..\/fonts/g' $rootDir/page/style.css + + # Updating post style + cp style.css $rootDir/post/style.css + sed -i 's/(.\/fonts/(..\/fonts/g' $rootDir/post/style.css + +} "$@"