summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-01-14 20:29:23 +0100
committerVolpeon <git@volpeon.ink>2021-01-14 20:29:23 +0100
commita788c0f520afc923cc291693705f44f52c2a3b2e (patch)
treeacfc447c0a247ef2c04f81d6f25c8ce7325586e1 /scripts
parentShow secret footer, add link meta tag to feed for owning page, finished home ... (diff)
downloadvolpeon.ink-a788c0f520afc923cc291693705f44f52c2a3b2e.tar.gz
volpeon.ink-a788c0f520afc923cc291693705f44f52c2a3b2e.tar.bz2
volpeon.ink-a788c0f520afc923cc291693705f44f52c2a3b2e.zip
Compile drafts in watch/serve mode
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_content.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh
index 97f57a3..41c2a4b 100755
--- a/scripts/build_content.sh
+++ b/scripts/build_content.sh
@@ -178,10 +178,15 @@ handle () {
178 fi 178 fi
179} 179}
180 180
181mdfilter=""
182if [ "$LIVE" != true ]; then
183 mdfilter="! -name _*.md"
184fi
185
181if [ -z "$1" ]; then 186if [ -z "$1" ]; then
182 find "$CONTENT_DIR" \ 187 find "$CONTENT_DIR" \
183 -type f \ 188 -type f \
184 ! -name "_*.md" \ 189 $mdfilter \
185 | while read file_in 190 | while read file_in
186 do 191 do
187 handle "$file_in" 192 handle "$file_in"
@@ -190,7 +195,7 @@ elif [ "$1" = "all_md" ]; then
190 find "$CONTENT_DIR" \ 195 find "$CONTENT_DIR" \
191 -type f \ 196 -type f \
192 -name "*.md" \ 197 -name "*.md" \
193 ! -name "_*.md" \ 198 $mdfilter \
194 | while read file_in 199 | while read file_in
195 do 200 do
196 handle "$file_in" 201 handle "$file_in"