summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/post.html19
-rw-r--r--templates/posts.html12
2 files changed, 19 insertions, 12 deletions
diff --git a/templates/post.html b/templates/post.html
index 8346f16..3155c7a 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -1,8 +1,13 @@
-<!DOCTYPE html>
-<html>
- <body>
- <article>
+{% extends "base.html" %}
+
+{% block main %}
+<section class="banner">
+ <h1>{{ post.get_title() }}</h1>
+</section>
+
+<section class="quiet">
+ <article>
{{ post.get_article()|markdown }}
- </article>
- </body>
-</html>
+ </article>
+</section>
+{% endblock %}
diff --git a/templates/posts.html b/templates/posts.html
index 57d2480..0cb4cf1 100644
--- a/templates/posts.html
+++ b/templates/posts.html
@@ -1,13 +1,15 @@
{% extends "base.html" %}
{% block main %}
+<section class="banner">
+ <h1>Journal Posts</h1>
+</section>
+
<section class="quiet">
<p>
- <ul>
- {% for post in posts %}
- <li>{{ post.get_title() }}</li>
- {% endfor %}
- </ul>
+ {% for post in posts %}
+ <h3><a href="/posts/{{ post.get_title()|e }}">{{ post.get_title() }}</a></h3>
+ {% endfor %}
</p>
<section>
{% endblock %}