Fix #71
This commit is contained in:
parent
3c39aafe20
commit
db3f42c417
1 changed files with 7 additions and 1 deletions
8
bb.sh
8
bb.sh
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue