Issue #6: Move title into post-header.html

This commit is contained in:
Oliver Davies 2015-06-29 13:03:32 +01:00
parent 3aa989ed06
commit 3567718c70
3 changed files with 4 additions and 5 deletions

View file

@ -4,8 +4,6 @@
{% block content_wrapper %}
<div class="col-md-10">
<h1>{{ page.title }}</h1>
{% include 'post-header' %}
{% block content %}{% endblock %}

View file

@ -1,3 +1,6 @@
{% set title_tag = title_tag|default('h1') %}
<{{ title_tag }}>{{ page.title }}</{{ title_tag }}>
<p class="posted">Posted: {{ page.date|date('jS F Y') }}</p>
{#
{% if page.tags %}

View file

@ -14,9 +14,7 @@ use:
{% for post in page.pagination.items %}
<article class="post">
<h2>{{ post.title }}</h2>
{% include 'post-header' with { page: post } %}
{% include 'post-header' with { page: post, title_tag: 'h2' } %}
{% if post.blocks.excerpt %}
{{ post.blocks.excerpt|raw }}