Carlos Fenollosa 11 years ago
parent
commit
53e79106f5
1 changed files with 2 additions and 3 deletions
  1. 2 3
      bb.sh

+ 2 - 3
bb.sh

@@ -537,9 +537,8 @@ create_html_page() {
     echo '</div>' >> "$filename" # content
 
     # Add disqus commments except for index and all_posts pages
-    if [[ ${filename%.*.*} != "index" && ${filename%.*.*} != "all_posts" ]]; then
-    	disqus_body >> "$filename"
-    fi
+    [[ "$index" == "no" ]] && disqus_body >> "$filename"
+
     # page footer
     cat .footer.html >> "$filename"
     # close divs