legacy-dotfiles/templates/blog/posts.html

43 lines
1,013 B
HTML
Raw Normal View History

2011-10-17 01:34:04 +02:00
<!-- -*- 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 %}