главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Brigman <datyedyeguy@gmail.com>2014-02-03 21:59:36 -0500
committerHans Brigman <datyedyeguy@gmail.com>2014-02-03 21:59:36 -0500
commitf05f1e834024d5d0bcf30caa26807b24a4b2c5a7 (patch)
treeefcf6212e4cf0c3f289914ad10b879196e419cce
parent135a983166f2a1259dd62205fb5223f41aec8272 (diff)
Don't process header/footer files as blog entries
rebuild_all_entries wasn't checking if the file in question being processed was a header or footer file that could be specified in the configuration. Now it checks and skips them if they exist [like the index and archive file(s)].
-rwxr-xr-xbb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.sh b/bb.sh
index f866730..5ae9f6d 100755
--- a/bb.sh
+++ b/bb.sh
@@ -712,7 +712,7 @@ rebuild_all_entries() {
echo -n "Rebuilding all entries "
for i in *.html; do # no need to sort
- if [[ "$i" == "$index_file" ]] || [[ "$i" == "$archive_index" ]]; then continue; fi
+ if [[ "$i" == "$index_file" ]] || [[ "$i" == "$archive_index" ]] || [[ "$i" == "$footer_file" ]] || [[ "$i" == "$header_file" ]]; then continue; fi
contentfile=".tmp.$RANDOM"
while [ -f "$contentfile" ]; do contentfile=".tmp.$RANDOM"; done