From d90d07fa3938c944fe8897e7ce1d995bd660573d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 30 Dec 2020 11:30:59 +0100 Subject: Better templates structure, better script config --- scripts/watch_templates.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts/watch_templates.sh') diff --git a/scripts/watch_templates.sh b/scripts/watch_templates.sh index 9b464d4..b6149e7 100755 --- a/scripts/watch_templates.sh +++ b/scripts/watch_templates.sh @@ -1,6 +1,12 @@ #!/bin/bash -inotifywait -qrme close_write,delete,move --format "%w%f" templates \ +source "site.defaults.conf" + +if [ -f "site.conf" ]; then + source "site.conf" +fi + +inotifywait -qrme close_write,delete,move --format "%w%f" "${TEMPLATES_DIR%/}" \ | while read file do scripts/build_content.sh "all_md" -- cgit v1.2.3-70-g09d2