summaryrefslogtreecommitdiff
path: root/themes/simple/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/simple/templates/index.html')
-rw-r--r--themes/simple/templates/index.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/simple/templates/index.html b/themes/simple/templates/index.html
new file mode 100644
index 0000000..100a720
--- /dev/null
+++ b/themes/simple/templates/index.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+{% block content %}
+ {% block content_title %}
+ <h2>All articles</h2>
+ {% endblock %}
+
+
+ {% for article in articles_page.object_list %}
+ <article>
+ <header> <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
+ <section>{{ article.summary }}</section>
+ <footer>
+ <p>Published: <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time></p>
+ {%- if article.authors %}
+ <address>By
+ {% for author in article.authors %}
+ <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
+ {% endfor %}
+ </address>
+ {%- endif %}
+ </footer>
+ </article>
+ {% endfor %}
+
+ {% if articles_page.has_other_pages() %}
+ {% include 'pagination.html' %}
+ {% endif %}
+
+{% endblock content %}