mirror of https://github.com/dyne/webnomad.git
reverse the bootstrap inclusion switch (backward compat)
This commit is contained in:
parent
132da54dc7
commit
6c8bfc6750
4
init
4
init
|
|
@ -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
8
render
|
|
@ -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> </p>
|
||||
<div class="container-fluid">
|
||||
|
|
@ -468,7 +468,7 @@ EOF
|
|||
|
||||
cat $src | render_html >> $dst
|
||||
|
||||
[[ $BOOTSTRAP = 1 ]] && {
|
||||
[[ $BOOTSTRAP = 0 ]] || {
|
||||
cat <<EOF >> $dst
|
||||
</article>
|
||||
<p> </p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue