aboutsummaryrefslogtreecommitdiffstats
path: root/built-texts/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'built-texts/templates/index.html')
-rw-r--r--built-texts/templates/index.html63
1 files changed, 63 insertions, 0 deletions
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() %}
+ <div class='row-fluid''>
+ <div class="article-title span9">
+ <a href="{{ SITEURL }}/{{ article.url }}"><h1>{{ article.title }}</h1></a>
+ </div>
+ </div>
+ <div class="row-fluid">
+ <div class="span2">
+ {% include "article-sidebar.html" %}
+ </div>
+ <div class="article-content span8">
+ {{ article.content}}
+ <a class="btn btn-mini xsmall" href="{{ SITEURL }}/{{ article.url }}">
+ <i class="icon-comment"></i> Comment </a>
+ <hr />
+ </div>
+
+ </div>
+
+ {% if loop.length == 1 %}
+ {% include 'pagination.html' %}
+ {% endif %}
+
+{# other items #}
+{% else %}
+
+
+ <div class='row-fluid'>
+ <div class='article-title span9'>
+ <a href="{{ SITEURL }}/{{ article.url }}"><h1>{{ article.title }}</h1></a>
+ </div>
+ </div>
+ <div class="row-fluid">
+ <div class="span2">
+ {% include "article-sidebar.html" %}
+ </div>
+ <div class="summary span8">
+ {{ article.summary }}
+ <a class="btn btn-mini xsmall" href="{{ SITEURL }}/{{ article.url }}">
+ <i class="icon-plus-sign"></i> Read More </a>
+ <hr />
+ </div>
+
+ </div>
+
+ {% 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 %}
+