浏览代码

Merge pull request #21 from Datyedyeguy/SkipFooterHeaderDuringRebuild

Don't process header/footer files as blog entries
Carlos Fenollosa 11 年之前
父节点
当前提交
4aaae26e92
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bb.sh

+ 1 - 1
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