aboutsummaryrefslogtreecommitdiffstats
path: root/nmnlist/templates/index.html
diff options
context:
space:
mode:
authorStéphane Caron <stephane.caron@ens.fr>2013-03-20 12:04:11 +0100
committerStéphane Caron <stephane.caron@ens.fr>2013-03-20 12:04:11 +0100
commitda810104cd033c1dcc25d67f8f09985a415b43b9 (patch)
tree3ab6f758a1e022e04ebd82bf09691648ecb14107 /nmnlist/templates/index.html
parent53d6c4254aa2b4781b850419d63a40527c307d71 (diff)
downloadpelican-themes-da810104cd033c1dcc25d67f8f09985a415b43b9.tar.gz
theme variant from mnmlist
Diffstat (limited to 'nmnlist/templates/index.html')
-rw-r--r--nmnlist/templates/index.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/nmnlist/templates/index.html b/nmnlist/templates/index.html
new file mode 100644
index 0000000..b754a8e
--- /dev/null
+++ b/nmnlist/templates/index.html
@@ -0,0 +1,35 @@
+{% 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 }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
+ <span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> &sdot;</span>
+ {% 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>Tous les articles</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 %}
+ Pas d'articles pour le moment.
+{% endif %}
+{% endblock content %}