mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Create gutenberg templates
This commit is contained in:
23
blog/templates/page.html
Normal file
23
blog/templates/page.html
Normal 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 }}">« {{ page.previous.title }}</a>
|
||||
{% endif %}
|
||||
{% if page.next %}
|
||||
<a class="next" href="{{ page.next.path }}">{{ page.next.title }} »</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock after_main %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user