Create gutenberg templates

This commit is contained in:
Philipp Oppermann
2017-05-02 08:49:50 +02:00
parent d109912798
commit 168b598901
6 changed files with 158 additions and 0 deletions

23
blog/templates/page.html Normal file
View File

@@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
{% block main %}
<h1>{{ page.title }}</h1>
{{ page.content | safe }}
{% endblock main %}
{% block after_main %}
<hr>
<div class="PageNavigation">
{% if page.previous %}
<a class="prev" href="{{ page.previous.path }}">&laquo; {{ page.previous.title }}</a>
{% endif %}
{% if page.next %}
<a class="next" href="{{ page.next.path }}">{{ page.next.title }} &raquo;</a>
{% endif %}
</div>
{% endblock after_main %}