X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/bb8272178c6c35fcb92bc5a08342faf40d3fab1b..bba5754a7f6971f4eedd2d4faa74e7ad89de8586:/sommitrealweird/blog/templates/blog/blog_index.html?ds=sidebyside diff --git a/sommitrealweird/blog/templates/blog/blog_index.html b/sommitrealweird/blog/templates/blog/blog_index.html index 8e94748..6727804 100644 --- a/sommitrealweird/blog/templates/blog/blog_index.html +++ b/sommitrealweird/blog/templates/blog/blog_index.html @@ -1,11 +1,19 @@ {% extends "base.html" %} -{% load markup %} +{% load xhtml11rst %} +{% load comments %} + +{% block extrahead %} + + +{% endblock %} {% block content %} {% if entries %} {% for entry in entries %}

{{ entry.title|escape }}

+
{{ entry.content|restructuredtext }} +

Posted: {{ entry.publish_date|date:"Y-m-d H:i" }} in {% for section in entry.sections.all %} {% if forloop.first %} @@ -18,9 +26,10 @@ {% endif %} {% endif %} {% endfor %} - permalink

+ {% get_comment_count for entry as comment_count %} + permalink | Comments: {{ comment_count }}

{% endfor %} - {% if paginated %} + {% if paginated and has_more_than_one_page %}

Pages: {% if has_prev %} Previous | @@ -39,6 +48,7 @@ {% if has_next %} | Next {% endif %} +

{% endif %} {% else %}

We have no blog entries - that sucks!