From da4917f8c673a16ba757b3b911cf5ce36895d74e Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 11 Mar 2020 02:26:54 +0300 Subject: initial commit --- templates/weblog.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 templates/weblog.html (limited to 'templates/weblog.html') diff --git a/templates/weblog.html b/templates/weblog.html new file mode 100644 index 0000000..11c0d2a --- /dev/null +++ b/templates/weblog.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% block content %} +
+ {% for post in paginator.pages %} +
+

{{ post.title }}

+ {% if post.summary %} + {{ post.summary | safe }} + {% endif %} +
+ {% endfor %} +
+{% if paginator %} +{% if paginator.number_pagers > 1 %} +
+ {% if paginator.previous %} + First + Previous page: {{ paginator.current_index - 1 }} + {% endif %} + {% if paginator.next %} + Next page: {{ paginator.current_index + 1 }} + Last + {% endif %} +
+{% endif %} +{% endif %} +{% endblock %} -- cgit v1.2.3