summaryrefslogtreecommitdiffstats
path: root/templates/blog/posts.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blog/posts.html')
-rw-r--r--templates/blog/posts.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/blog/posts.html b/templates/blog/posts.html
new file mode 100644
index 0000000..d9bc72d
--- /dev/null
+++ b/templates/blog/posts.html
@@ -0,0 +1,42 @@
+<!-- -*- Mode: django-html-mumamo -*- -->
+
+{% extends "blog/base.html" %}
+
+{% block content %}
+ {% if postlist %}
+ {% for post in postlist %}
+ <div class="container">
+ <div class="header">
+ <a href="/blog/post/{{ post.pk }}/">
+ <span class="title">{{ post.subject }}</span>
+ </a>
+ </div>
+ {% autoescape off %}
+ {{ post.body|linebreaksbr }}
+ {% endautoescape %}
+ <div class="footer">
+ Date posted: {{ post.postdate|date:"r" }}
+ Tags:
+ {% for tag in post.tags.all %}
+ {% if forloop.counter > 1 %}, {% endif %}
+ <a href="/blog/tag/{{ tag.name }}">{{ tag.name }}</a>
+ {% empty %}
+ None
+ {% endfor %}
+ </div>
+ </div>
+ {% endfor %}
+
+ <div class="navigation">
+ {% if has_next %}
+ <a class="next" href="/blog/{{ next_page }}/">next</a>
+ {% endif %}
+
+ {% if has_previous %}
+ <a class="previous" href="/blog/{{ previous_page }}/">previous</a>
+ {% endif %}
+ </div>
+ {% else %}
+ Yeah I know, I'm boring.
+ {% endif %}
+{% endblock %}