aboutsummaryrefslogtreecommitdiffstats
path: root/built-texts/templates/index.html
diff options
context:
space:
mode:
authorthe Bunny Man <WagThatTail@Me.com>2013-01-09 09:26:50 -0800
committerthe Bunny Man <WagThatTail@Me.com>2013-01-09 09:26:50 -0800
commit77f388b74fcfe2fe12c670ca11d1500dfd6cecdc (patch)
treedc01f66047a1cb80446a023010196e6cc279feb6 /built-texts/templates/index.html
parentbd8e9113dab4d8802b80c8c6bf6010d1e7571946 (diff)
parent76bbbdfd68152e35ed7b050c8159fd35be0e4be8 (diff)
downloadpelican-themes-77f388b74fcfe2fe12c670ca11d1500dfd6cecdc.tar.gz
Merge pull request #65 from theanalyst/master
Add new theme built-texts
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 %}
+