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="row">
<div class="col-md-10">
{% block content_wrapper %}
{% block content_wrapper %}
<div class="col-md-10">
{% block content %}{% endblock %}
{% endblock %}
</div>
</div>
{% endblock %}
{% include 'sidebar' %}
</div>{# .row #}

View file

@ -1,24 +1,28 @@
{% extends 'default' %}
{% block content_wrapper %}
{% include 'post-header' %}
{% block content %}{% endblock %}
<div class="col-md-10">
{% 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 %}
{% include 'post-header' %}
{% block content %}{% endblock %}
{% 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 %}
<ul>
{% if page.next_post %}<li>Next post: <a href="{{ page.next_post.url }}">{{ page.next_post.title }}</a></li>{% endif %}
{% if page.previous_post %}<li>Previous post: <a href="{{ page.previous_post.url }}">{{ page.previous_post.title }}</a></li>{% endif %}
</ul>
{% endif %}
{% include 'about-author' %}
{% if page.next_post or page.previous_post %}
<ul>
{% if page.next_post %}<li>Next post: <a href="{{ page.next_post.url }}">{{ page.next_post.title }}</a></li>{% 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 %}