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)].
This commit is contained in:
parent
135a983166
commit
f05f1e8340
1 changed files with 1 additions and 1 deletions
2
bb.sh
2
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue