diff options
author | Carlos Fenollosa <cfenollosa@mba.local> | 2015-02-19 09:33:29 +0100 |
---|---|---|
committer | Carlos Fenollosa <cfenollosa@mba.local> | 2015-02-19 09:33:29 +0100 |
commit | db3f42c4177857658e77a945200cec01ed86cc39 (patch) | |
tree | 8d49a205edc1055b28f41608441b08c85d126764 /bb.sh | |
parent | 3c39aafe20f52549e60445235f233bde05c20daf (diff) |
Fix #71
Diffstat (limited to 'bb.sh')
-rwxr-xr-x | bb.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -94,6 +94,8 @@ global_variables() { # CSS files to include on every page, f.ex. css_include=('main.css' 'blog.css') # leave empty to use generated css_include=() + # HTML files to exclude from index, f.ex. post_exclude=('imprint.html 'aboutme.html') + html_exclude=() # Localization and i18n # "Comments?" (used in twitter link after every post) @@ -387,7 +389,11 @@ twitter() { is_boilerplate_file() { name="`clean_filename $1`" if [[ "$name" == "$index_file" ]] || [[ "$name" == "$archive_index" ]] || [[ "$name" == "$tags_index" ]] || [[ "$name" == "$footer_file" ]] || [[ "$name" == "$header_file" ]] || [[ "$name" == "$global_analytics_file" ]] || [[ "$name" = "$prefix_tags"* ]] ; then return 0 - else return 1 + else # Check for exclded + for excl in ${html_exclude[*]}; do + [[ "$name" == "$excl" ]] && return 0 + done + return 1 fi } |