aboutsummaryrefslogtreecommitdiffstats
path: root/monospace/templates/index.html
diff options
context:
space:
mode:
authorlwm <luke.murphy@ammeon.com>2013-09-15 14:16:40 +0100
committerlwm <luke.murphy@ammeon.com>2013-09-17 14:46:36 +0100
commit3197b676fe9e55fdd5b8ded77200117e62543fd2 (patch)
tree9a3f34a0ea5c8625c040dfdf300508f9cd4c7399 /monospace/templates/index.html
parent61165760cc5eb6e76b377b18224190380c873525 (diff)
downloadpelican-themes-3197b676fe9e55fdd5b8ded77200117e62543fd2.tar.gz
adapted monospace
Diffstat (limited to 'monospace/templates/index.html')
-rw-r--r--monospace/templates/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/monospace/templates/index.html b/monospace/templates/index.html
new file mode 100644
index 0000000..c2a1b60
--- /dev/null
+++ b/monospace/templates/index.html
@@ -0,0 +1,34 @@
+{% extends "base.html" %}
+{% block content_title %}{% endblock %}
+{% block content %}
+{% if articles %}
+ {% for article in articles %}
+
+ {# First item #}
+ {% if loop.first %}
+ <header>
+ <h1><a href="{{ SITEURL }}" id="site-title"> {# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#} <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
+ {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
+ </header>
+
+ <article>
+ {{ article.content }}{% include 'comments.html' %}
+ </article>
+ {% if loop.length > 1 %}
+ <section id="article-list">
+ <h2>All posts</h2>
+ <ol>
+ {% endif %}
+ {# other items #}
+ {% else %}
+ <li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></li>
+ {% endif %}
+{% endfor %}
+ {% if loop.length > 1 %}
+ </ol>
+ </section><!-- #article-list -->
+{% endif %}
+{% else %}
+ No posts found.
+{% endif %}
+{% endblock content %}