aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'pelican-bootstrap3/templates/base.html')
-rw-r--r--pelican-bootstrap3/templates/base.html43
1 files changed, 25 insertions, 18 deletions
diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html
index 28e592a..c80d84b 100644
--- a/pelican-bootstrap3/templates/base.html
+++ b/pelican-bootstrap3/templates/base.html
@@ -108,7 +108,7 @@
<body>
<div class="navbar {% if BOOTSTRAP_NAVBAR_INVERSE %}navbar-inverse{% else %}navbar-default{% endif %} navbar-fixed-top" role="navigation">
- <div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
+ <div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
<div class="navbar-header">
{% if MENUITEMS or (pages and DISPLAY_PAGES_ON_MENU) or (categories and DISPLAY_CATEGORIES_ON_MENU) %}
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
@@ -164,6 +164,7 @@
<!-- /.navbar-collapse -->
</div>
</div> <!-- /.navbar -->
+
<!-- Banner -->
{% if BANNER and BANNER_ALL_PAGES %}
{% include 'includes/banner.html' %}
@@ -171,32 +172,38 @@
{% block banner %}{% endblock %}
{% endif %}
<!-- End Banner -->
+
+<!-- Content Container -->
+{% if PADDED_SINGLE_COLUMN_STYLE %}
+ {% set content_class='col-md-8 col-md-offset-2' %}
+{% elif not HIDE_SIDEBAR or ABOUT_ME or AVATAR %}
+ {% set content_class='col-sm-9' + (' col-sm-push-3' if SIDEBAR_ON_LEFT else '') %}
+ {% set sidebar_class='col-sm-3' + (' col-sm-pull-9' if SIDEBAR_ON_LEFT else '') %}
+{% else %}
+ {% set content_class='col-lg-12' %}
+{% endif %}
<div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
<div class="row">
- {% if not HIDE_SIDEBAR or ABOUT_ME or AVATAR %}
- <div class="col-sm-9{% if SIDEBAR_ON_LEFT %} col-sm-push-3{% endif %}">
- {% else %}
- <div class="col-lg-12">
- {% endif %}
- {% block breadcrumbs %}
- {% endblock %}
- {% block content %}
- {% endblock %}
+ <div class="{{ content_class }}">
+ {% block breadcrumbs %}{% endblock %}
+ {% block content %}{% endblock %}
</div>
- {% if not HIDE_SIDEBAR or ABOUT_ME or AVATAR %}
- <div class="col-sm-3{% if SIDEBAR_ON_LEFT %} col-sm-pull-9{% endif %}" id="sidebar">
+ {% if sidebar_class %}
+ <div class="{{ sidebar_class }}" id="sidebar">
<aside>
- {% if ABOUT_ME or AVATAR %}
- {% include 'includes/aboutme.html' %}
- {% endif %}
- {% if not HIDE_SIDEBAR %}
- {% include 'includes/sidebar.html' %}
- {% endif %}
+ {% if ABOUT_ME or AVATAR %}
+ {% include 'includes/aboutme.html' %}
+ {% endif %}
+ {% if not HIDE_SIDEBAR %}
+ {% include 'includes/sidebar.html' %}
+ {% endif %}
</aside>
</div>
{% endif %}
</div>
</div>
+<!-- End Content Container -->
+
{% include 'includes/footer.html' %}
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery.min.js"></script>