Fixed post width

This commit is contained in:
Oliver Davies 2016-05-27 19:38:20 +01:00
parent 47d701187f
commit 14b3c6fb6c

View file

@ -1,50 +1,47 @@
{% extends 'default.html.twig' %} {% extends 'default' %}
{% block content_wrapper %} {% block content_wrapper %}
<main class="col-md-9"> {% include('post-header') %}
{% include('post-header') %}
{% block content %}{% endblock %} {% block content %}{% endblock %}
<p class="post-feedback" style="font-style: italic"> <p class="post-feedback" style="font-style: italic">
<b>Have feedback on this post?</b> <a href="mailto:{{ site.email }}?subject=Feedback: {{ page.title }}">Email me</a> or <a href="https://twitter.com/intent/tweet?text=@{{ site.twitter.name }}&url={{ site.url }}{{ page.url|url_encode }}">send me a tweet</a>. <b>Have feedback on this post?</b> <a href="mailto:{{ site.email }}?subject=Feedback: {{ page.title }}">Email me</a> or <a href="https://twitter.com/intent/tweet?text=@{{ site.twitter.name }}&url={{ site.url }}{{ page.url|url_encode }}">send me a tweet</a>.
</p>
{% if page.related -%}
<h2>Related Posts</h2>
<ul>
{% for relate in page.related -%}
<li>
<a href="{{ relate.source.url }}">{{ relate.title }}</a>
</li>
{% endfor %}
</ul>
{%- endif %}
{% 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> </p>
{% endif %}
{% if page.related -%} <div class="about-author">
<h2>Related Posts</h2> <h2>About the Author</h2>
<ul> <img src="{{ site.gravatar.url }}?s=100" alt="Picture of Oliver" class="img-circle">
{% for relate in page.related -%}
<li>
<a href="{{ relate.source.url }}">{{ relate.title }}</a>
</li>
{% endfor %}
</ul>
{%- endif %}
{% if page.tags %} <p>{{ site.author.bio|raw }}</p>
<p class="tags"> </div>
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 %}
<div class="about-author"> {% if page.next_post or page.previous_post %}
<h2>About the Author</h2> <ul>
{% if page.next_post %}<li>Next post: <a href="{{ page.next_post.url }}">{{ page.next_post.title }}</a></li>{% endif %}
<img src="{{ site.gravatar.url }}?s=100" alt="Picture of Oliver" class="img-circle"> {% if page.previous_post %}<li>Previous post: <a href="{{ page.previous_post.url }}">{{ page.previous_post.title }}</a></li>{% endif %}
</ul>
<p>{{ site.author.bio|raw }}</p> {% endif %}
</div>
{% 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 %}
</main>
{% endblock %} {% endblock %}