From 3567718c7042ca44bed9ec51831650d2cde5c494 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 29 Jun 2015 13:03:32 +0100 Subject: [PATCH] Issue #6: Move title into post-header.html --- source/_layouts/post.html | 2 -- source/_partials/post-header.html | 3 +++ source/blog.html | 4 +--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/_layouts/post.html b/source/_layouts/post.html index 59cfba9ba..e07f648e0 100644 --- a/source/_layouts/post.html +++ b/source/_layouts/post.html @@ -4,8 +4,6 @@ {% block content_wrapper %}
-

{{ page.title }}

- {% include 'post-header' %} {% block content %}{% endblock %} diff --git a/source/_partials/post-header.html b/source/_partials/post-header.html index e336b1649..b9286a7c9 100644 --- a/source/_partials/post-header.html +++ b/source/_partials/post-header.html @@ -1,3 +1,6 @@ +{% set title_tag = title_tag|default('h1') %} +<{{ title_tag }}>{{ page.title }} +

Posted: {{ page.date|date('jS F Y') }}

{# {% if page.tags %} diff --git a/source/blog.html b/source/blog.html index 9f9522254..b9097b753 100644 --- a/source/blog.html +++ b/source/blog.html @@ -14,9 +14,7 @@ use: {% for post in page.pagination.items %}
-

{{ post.title }}

- - {% include 'post-header' with { page: post } %} + {% include 'post-header' with { page: post, title_tag: 'h2' } %} {% if post.blocks.excerpt %} {{ post.blocks.excerpt|raw }}