[Refactor] Blog/Post: Use hero instead of (duplicate) header, update post templates with page module

This commit is contained in:
0xfff 2016-10-08 21:50:59 +02:00
parent d7a13d8c9a
commit 61a012ac30
15 changed files with 201 additions and 215 deletions

View file

@ -4,33 +4,33 @@ title: pages.blog.title
description: pages.blog.description
---
{% tf blog/header.html %}
{% include hero/blog.html %}
<div class="content post">
<div class="single-col">
{% include pagination_navigation_all.html %}
{% for post in paginator.posts %}
<!-- limit:4 -->
{% for post in paginator.posts %}
<!-- limit:4 -->
<div class="feature">
{% if post.image %}
<img src="{{ post.image }}" class="preview">
{% endif %}
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p><em>{{ post.date | date: "%b %d, %Y" }}</em><br />{{ post.excerpt | strip_html | truncatewords: 50 }}</p>
</div>
<span class="clear"></span>
<div class="divider">
</div>
{% endfor %}
{% include pagination_navigation_all.html %}
</div>
</div>
</div>