Created
July 19, 2012 14:40
-
-
Save m-r-r/3144392 to your computer and use it in GitHub Desktop.
Modification du thème bootstrap2 pour Pelican
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% block content %} | |
<section id="content"> | |
<h1>Archives for {{ SITENAME }}</h1> | |
<dl> | |
{% for article in articles %} | |
{% if loop.first or article.date.strftime('%Y %m') != articles[loop.index0-1].date.strftime('%Y %m') %} | |
<dt> | |
<h2>{{ article.date.strftime('%B %Y') }}</h2> | |
<ul> | |
{% endif %} | |
<li> | |
<a rel="bookmark" | |
href="{{ SITEURL }}/{{ article.url }}" | |
title="Lien permanent vers «{{ article.title }}»"> | |
{{ article.title }} | |
</a> | |
</li> | |
{% if loop.last or article.date.strftime('%Y %m') != articles[loop.index0+1].date.strftime('%Y %m') %} | |
</ul> | |
</dt> | |
{% endif %} | |
{% endfor %} | |
</dl> | |
</section> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment