Moved the main content wrapper

This commit is contained in:
Oliver Davies 2015-05-28 18:01:03 +01:00
parent 66148bb245
commit 24f8844f4d
2 changed files with 25 additions and 21 deletions

View file

@ -27,11 +27,11 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-10"> {% block content_wrapper %}
{% block content_wrapper %} <div class="col-md-10">
{% block content %}{% endblock %} {% block content %}{% endblock %}
{% endblock %} </div>
</div> {% endblock %}
{% include 'sidebar' %} {% include 'sidebar' %}
</div>{# .row #} </div>{# .row #}

View file

@ -1,24 +1,28 @@
{% extends 'default' %} {% extends 'default' %}
{% block content_wrapper %} {% block content_wrapper %}
{% include 'post-header' %} <div class="col-md-10">
{% block content %}{% endblock %}
{% if page.tags %} {% include 'post-header' %}
<p class="tags"> {% block content %}{% endblock %}
Tags:
{% for tag in page.tags %}
<a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</p>
{% endif %}
{% include 'about-author' %} {% if page.tags %}
<p class="tags">
Tags:
{% for tag in page.tags %}
<a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</p>
{% endif %}
{% if page.next_post or page.previous_post %} {% include 'about-author' %}
<ul>
{% if page.next_post %}<li>Next post: <a href="{{ page.next_post.url }}">{{ page.next_post.title }}</a></li>{% endif %} {% if page.next_post or page.previous_post %}
{% if page.previous_post %}<li>Previous post: <a href="{{ page.previous_post.url }}">{{ page.previous_post.title }}</a></li>{% endif %} <ul>
</ul> {% if page.next_post %}<li>Next post: <a href="{{ page.next_post.url }}">{{ page.next_post.title }}</a></li>{% endif %}
{% endif %} {% if page.previous_post %}<li>Previous post: <a href="{{ page.previous_post.url }}">{{ page.previous_post.title }}</a></li>{% endif %}
</ul>
{% endif %}
</div>
{% endblock %} {% endblock %}