diff --git a/source/_layouts/post.html b/source/_layouts/post.html index 59cfba9b..e07f648e 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 e336b164..b9286a7c 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 9f952225..b9097b75 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 }}