Add actual templates for everything

This commit is contained in:
Bat
2018-05-09 20:09:52 +01:00
parent ae60d5961c
commit 292f4d6b27
12 changed files with 77 additions and 12 deletions
+10
View File
@@ -0,0 +1,10 @@
{% extends "base" %}
{% block title %}
{{ blog.title }}
{% endblock title %}
{% block content %}
<h1>{{ blog.title }} (~{{ blog.actor_id }})</h1>
<p>{{ blog.summary }}</p>
{% endblock content %}
+6
View File
@@ -0,0 +1,6 @@
{% extends "errors/base" %}
{% block error %}
<h1>Something broke on our side.</h1>
<h2>Sorry about that. If you think this is a bug, please report it.</h2>
{% endblock error %}
+15
View File
@@ -0,0 +1,15 @@
{% extends "base" %}
{% block title %}
{{ error_message }}
{% endblock title %}
{% block content %}
<main class="error">
{% block error %}
{% endblock error %}
<p>
{{ error_message }}
</p>
</main>
{% endblock content %}
+9
View File
@@ -0,0 +1,9 @@
{% extends "base" %}
{% block title %}
{{ instance.name }}
{% endblock title %}
{% block content %}
<h1>Welcome on {{ instance.name }}</h1>
{% endblock content %}
+15
View File
@@ -0,0 +1,15 @@
{% extends "base" %}
{% block title %}
{{ post.title }}
{% endblock title %}
{% block content %}
<h1>{{ post.title }}</h1>
<p>Published in {{ blog.title }}</p>
<hr>
<p>
{{ post.content | safe }}
</p>
<p>License: {{ post.license }}</p>
{% endblock content %}