diff options
author | Volpeon <git@volpeon.ink> | 2021-01-14 20:29:23 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-01-14 20:29:23 +0100 |
commit | a788c0f520afc923cc291693705f44f52c2a3b2e (patch) | |
tree | acfc447c0a247ef2c04f81d6f25c8ce7325586e1 /scripts | |
parent | Show secret footer, add link meta tag to feed for owning page, finished home ... (diff) | |
download | volpeon.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-x | scripts/build_content.sh | 9 |
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 | ||
181 | mdfilter="" | ||
182 | if [ "$LIVE" != true ]; then | ||
183 | mdfilter="! -name _*.md" | ||
184 | fi | ||
185 | |||
181 | if [ -z "$1" ]; then | 186 | if [ -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" |