Added post-header.html.twig

This commit is contained in:
Oliver Davies 2015-03-19 11:36:40 +00:00
parent 7a81cc644c
commit b7200378bc
2 changed files with 14 additions and 3 deletions

View file

@ -1,7 +1,8 @@
{% extends 'default' %}
{% block content_wrapper %}
<h1>{{ page.title }}</h1>
Posted: {{ page.date | date('jS F Y') }}
{% block content %}{% endblock %}
<div class="content">
{% include 'post-header' %}
{% block content %}{% endblock %}
</div>
{% endblock %}

View file

@ -0,0 +1,10 @@
<h1>{{ page.title | title }}</h1>
<p class="posted">Posted: {{ page.date | date('jS F Y') }}</p>
{#
{% if page.tags %}
Tags:
{% for tag in page.tags %}
{{ tag }}{% if not loop.last %},{% else %}.{% endif %}
{% endfor %}
{% endif %}
#}