From 76bbbdfd68152e35ed7b050c8159fd35be0e4be8 Mon Sep 17 00:00:00 2001 From: Abhishek L Date: Sun, 16 Dec 2012 17:08:01 +0530 Subject: Added new theme built-texts, based on tuxlite-tbs and bootstrap --- built-texts/templates/index.html | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 built-texts/templates/index.html (limited to 'built-texts/templates/index.html') diff --git a/built-texts/templates/index.html b/built-texts/templates/index.html new file mode 100644 index 0000000..727489c --- /dev/null +++ b/built-texts/templates/index.html @@ -0,0 +1,63 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} + +{% if articles %} +{% for article in articles_page.object_list %} + +{% if loop.first and not articles_page.has_previous() %} +
+
+

{{ article.title }}

+
+
+
+
+ {% include "article-sidebar.html" %} +
+
+ {{ article.content}} + + Comment +
+
+ +
+ + {% if loop.length == 1 %} + {% include 'pagination.html' %} + {% endif %} + +{# other items #} +{% else %} + + +
+
+

{{ article.title }}

+
+
+
+
+ {% include "article-sidebar.html" %} +
+
+ {{ article.summary }} + + Read More +
+
+ +
+ + {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %} + {% include 'pagination.html' %} + {% endif %} + +{% endif %} {# First item if #} + +{% endfor %} {# For article #} +{% endif %} {# If articles #} + +{% endblock content %} + -- cgit