reverse the bootstrap inclusion switch (backward compat)

This commit is contained in:
Jaromil 2015-10-14 02:35:56 +02:00
parent 132da54dc7
commit 6c8bfc6750
2 changed files with 6 additions and 6 deletions

4
init
View File

@ -93,8 +93,8 @@ TWITTER="@DyneOrg"
# Anything below is safe to leave untouched
#
# Comment to disable Bootstrap
BOOTSTRAP=1
# Uncomment to disable Bootstrap
# BOOTSTRAP=0
# What file extension to use for html files
EXTENSION=".html"

8
render
View File

@ -101,7 +101,7 @@ render_header() {
<meta name="MSSmartTagsPreventParsing" content="True" />
EOF
[[ $BOOTSTRAP = 1 ]] && {
[[ $BOOTSTRAP = 0 ]] && {
cat <<EOF
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements
http://html5shim.googlecode.com/svn/trunk/html5.js -->
@ -395,7 +395,7 @@ mkdir -p "$destination/css"
mkdir -p "$destination/js"
mkdir -p "$destination/img"
[[ $BOOTSTRAP = 1 ]] && {
[[ $BOOTSTRAP = 0 ]] || {
#{ test -r "$destination"/css/bootstrap.css } || {
cp "$SYS"/css/bootstrap.css "$destination"/css/
cp "$SYS"/img/* "$destination"/img/
@ -458,7 +458,7 @@ EOF
# don't forget the navbar
render_file "$DIR"/tmpl/navbar.html >> $dst
[[ $BOOTSTRAP = 1 ]] && {
[[ $BOOTSTRAP = 0 ]] || {
cat <<EOF >> $dst
<p>&nbsp;</p>
<div class="container-fluid">
@ -468,7 +468,7 @@ EOF
cat $src | render_html >> $dst
[[ $BOOTSTRAP = 1 ]] && {
[[ $BOOTSTRAP = 0 ]] || {
cat <<EOF >> $dst
</article>
<p>&nbsp;</p>