aboutsummaryrefslogtreecommitdiffstats
path: root/theme/templates/simple_index.html
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-05-01 23:53:51 -0400
committerbnewbold <bnewbold@robocracy.org>2016-05-01 23:53:51 -0400
commit0290aee70d071b3d5db2ce14635842043763acb5 (patch)
tree42ab419e0eded665938ef9d745ffb8f5a3ac220a /theme/templates/simple_index.html
parentfdca509424c838b4f031c45e1a8d786c1a84fd89 (diff)
downloadbnewnet-0290aee70d071b3d5db2ce14635842043763acb5.tar.gz
bnewnet-0290aee70d071b3d5db2ce14635842043763acb5.zip
create a basic theme (from bnewnet style)
Diffstat (limited to 'theme/templates/simple_index.html')
-rw-r--r--theme/templates/simple_index.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/theme/templates/simple_index.html b/theme/templates/simple_index.html
new file mode 100644
index 0000000..4bd8198
--- /dev/null
+++ b/theme/templates/simple_index.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+{% block content %}
+<section id="content">
+{% block content_title %}
+<h2>All articles</h2>
+{% endblock %}
+
+<ol id="post-list">
+{% for article in articles_page.object_list %}
+ <li><article class="hentry">
+ <header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
+ <footer class="post-info">
+ <abbr class="published" title="{{ article.date.isoformat() }}"> {{ article.locale_date }} </abbr>
+ <address class="vcard author">By
+ {% for author in article.authors %}
+ <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
+ {% endfor %}
+ </address>
+ </footer><!-- /.post-info -->
+ <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content -->
+ </article></li>
+{% endfor %}
+</ol><!-- /#posts-list -->
+{% if articles_page.has_other_pages() %}
+ {% include 'pagination.html' %}
+{% endif %}
+</section><!-- /#content -->
+{% endblock content %}