Skip to content

Instantly share code, notes, and snippets.

@m-r-r
Created July 19, 2012 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m-r-r/3144392 to your computer and use it in GitHub Desktop.
Save m-r-r/3144392 to your computer and use it in GitHub Desktop.
Modification du thème bootstrap2 pour Pelican
{% 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