Fix post rendering

This commit is contained in:
Gergely Polonkai 2016-06-28 13:02:16 +02:00
parent 51546634e1
commit 8b88d64804
1 changed files with 7 additions and 7 deletions

View File

@ -1,18 +1,18 @@
<article class="{% if page.post_listing %}col-sm-5 col-md-6 {% endif%}post"> <article class="{% if layout.post_listing %}col-sm-5 col-md-6 {% endif%}post">
{% if page.post_listing %} {% if layout.post_listing %}
<ul class="list-inline"> <ul class="list-inline">
<li class="col-md-8"> <li class="col-md-8">
{% endif %} {% endif %}
<header class="post-header"> <header class="post-header">
<h3> <h3>
{% if page.post_listing %} {% if layout.post_listing %}
<a href="{{post.url | prepend: site.baseurl}}"> <a href="{{post.url | prepend: site.baseurl}}">
{% endif %} {% endif %}
{{post.title}} {{post.title}}
{% if page.post_listing %} {% if layout.post_listing %}
</a> </a>
{% endif %} {% endif %}
{% if page.render_post %} {% if layout.render_post %}
<div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div> <div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div>
{% endif %} {% endif %}
</h3> </h3>
@ -26,7 +26,7 @@
</header> </header>
<main> <main>
{% if page.render_post %} {% if layout.render_post %}
{{content}} {{content}}
{% else %} {% else %}
{{post.excerpt}} {{post.excerpt}}
@ -34,7 +34,7 @@
</main> </main>
{% include tag-link.html %} {% include tag-link.html %}
{% if page.post_listing %} {% if layout.post_listing %}
</li> </li>
</ul> </ul>
{% endif %} {% endif %}