aboutsummaryrefslogtreecommitdiffstats
path: root/mnmlist/templates/index.html
diff options
context:
space:
mode:
authorMathieu Agopian <mathieu.agopian@gmail.com>2012-03-03 09:41:45 +0100
committerMathieu Agopian <mathieu.agopian@gmail.com>2012-03-03 09:41:45 +0100
commit1bcb149edda11531986d0db855529ef123a69d18 (patch)
tree847a6774793b26b1390feec1aaffc86d8ae3f28a /mnmlist/templates/index.html
parent7c039820c24f7687498e6d3b88e00ccbd45ac1fa (diff)
downloadpelican-themes-1bcb149edda11531986d0db855529ef123a69d18.zip
pelican-themes-1bcb149edda11531986d0db855529ef123a69d18.tar.gz
pelican-themes-1bcb149edda11531986d0db855529ef123a69d18.tar.bz2
mnmlist theme
Diffstat (limited to 'mnmlist/templates/index.html')
-rw-r--r--mnmlist/templates/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/mnmlist/templates/index.html b/mnmlist/templates/index.html
new file mode 100644
index 0000000..871360f
--- /dev/null
+++ b/mnmlist/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>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 %}