aboutsummaryrefslogtreecommitdiffstats
path: root/bricabrac/templates/index.html
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2017-02-21 08:52:32 -0800
committerGitHub <noreply@github.com>2017-02-21 08:52:32 -0800
commitdaf25dfb2062270a1571d850c1d17ec9d0dbc98b (patch)
treeaf70eacd15b7cbe2114913b2acf28a0296911e34 /bricabrac/templates/index.html
parent42412ba752da93242a9784d9df5f6b680bce2d73 (diff)
parent185f6fdd3da30e6cfce6156992bd1fb15d79015d (diff)
downloadpelican-themes-daf25dfb2062270a1571d850c1d17ec9d0dbc98b.tar.gz
Merge pull request #491 from Bricabraque/master
Add Bricabrac theme
Diffstat (limited to 'bricabrac/templates/index.html')
-rw-r--r--bricabrac/templates/index.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/bricabrac/templates/index.html b/bricabrac/templates/index.html
new file mode 100644
index 0000000..6797900
--- /dev/null
+++ b/bricabrac/templates/index.html
@@ -0,0 +1,32 @@
+{% 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 SITEDESCRIPTION %} <strong>{{ SITEDESCRIPTION }}</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.summary }}
+<p><a href="{{ SITEURL }}/{{ article.url }}" id="page-title"><u>lire la suite</u></a></p>
+</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="Permalien vers {{ article.title|striptags }}">{{ article.title }}</a></li>
+ {% endif %}
+{% endfor %}
+ </ol>
+ </section><!-- #article-list -->
+{% else %}
+ No posts found.
+{% endif %}
+{% endblock content %}