From 021f6ace11aee47a7ba9d7381cc16b0acf50f748 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 22 Dec 2020 21:35:57 +0100 Subject: Switched from cssnano to csso, added robots.txt, changed output dir --- scripts/build_content.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'scripts/build_content.sh') diff --git a/scripts/build_content.sh b/scripts/build_content.sh index e15293e..bd35694 100755 --- a/scripts/build_content.sh +++ b/scripts/build_content.sh @@ -4,9 +4,9 @@ SITE_TITLE="Volpeon's Den" target () { if [ "${1#*.}" = "md" ]; then - echo "dist/$(echo "${1%.md}.html" | cut -sd / -f 2-)" + echo "output/$(echo "${1%.md}.html" | cut -sd / -f 2-)" else - echo "dist/$(echo "$1" | cut -sd / -f 2-)" + echo "output/$(echo "$1" | cut -sd / -f 2-)" fi } @@ -14,6 +14,7 @@ compile () { TARGET=$(target "$1") mkdir -p $(dirname "$TARGET") pandoc "$1" \ + -f markdown \ -t html5 \ --template templates/base.html \ -o "$TARGET" \ @@ -28,10 +29,8 @@ if [ -z "$1" ]; then do compile "$FILE" done +elif [ "$2" = "delete" ]; then + rm -rf $(target $1) else - if [ "$2" = "delete" ]; then - rm -rf $(target $1) - else - compile "$1" - fi + compile "$1" fi -- cgit v1.2.3-54-g00ecf