summaryrefslogtreecommitdiffstats
path: root/scripts/build_content.sh
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-25 13:22:37 +0100
committerVolpeon <git@volpeon.ink>2020-12-25 13:22:37 +0100
commite7d6404ab184a5f6a8645bd0ac90b3676b8c5efc (patch)
tree3d09f5793e666f27c888f536bbe54839974c4fbc /scripts/build_content.sh
parentVarious improvements: CSS classes, favicon, design (diff)
downloadvolpeon.ink-e7d6404ab184a5f6a8645bd0ac90b3676b8c5efc.tar.gz
volpeon.ink-e7d6404ab184a5f6a8645bd0ac90b3676b8c5efc.tar.bz2
volpeon.ink-e7d6404ab184a5f6a8645bd0ac90b3676b8c5efc.zip
Improved CSS definitions, more fine-grained content build script
Diffstat (limited to 'scripts/build_content.sh')
-rwxr-xr-xscripts/build_content.sh28
1 files changed, 23 insertions, 5 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh
index ca75120..6ce857f 100755
--- a/scripts/build_content.sh
+++ b/scripts/build_content.sh
@@ -35,10 +35,28 @@ if [ -z "$1" ]; then
35 do 35 do
36 handle "$FILE" 36 handle "$FILE"
37 done 37 done
38elif [ "$2" = "delete" ]; then 38elif [ "$1" = "md" ]; then
39 TARGET=$(target "$1") 39 find content/ \
40 echo "[DELETE ] $1 -> $TARGET" 40 -type f \
41 rm -rf $TARGET 41 -name "*.md" \
42 | while read FILE
43 do
44 handle "$FILE"
45 done
46elif [ "$1" = "single" ]; then
47 if [ -z "$2" ]; then
48 echo "[ERROR ] \"single\" operation requires file argument"
49 else
50 handle "$2"
51 fi
52elif [ "$1" = "delete" ]; then
53 if [ -z "$2" ]; then
54 echo "[ERROR ] \"delete\" operation requires file argument"
55 else
56 TARGET=$(target "$2")
57 echo "[DELETE ] $2 -> $TARGET"
58 rm -rf $TARGET
59 fi
42else 60else
43 handle "$1" 61 echo "[ERROR ] Unknown operation: \"$1\""
44fi 62fi