Issue #6: Move title into post-header.html
This commit is contained in:
parent
3aa989ed06
commit
3567718c70
|
@ -4,8 +4,6 @@
|
|||
|
||||
{% block content_wrapper %}
|
||||
<div class="col-md-10">
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
||||
{% include 'post-header' %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue