forked from github/pelican
Changes about locales and dates.
Add a way to specify the locale in the settings, and the date formating as well. Fixes #61.
This commit is contained in:
parent
3070c8fc9e
commit
d13e6f14fb
16 changed files with 39 additions and 13 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<dl>
|
||||
<h2 class="title">Archives de {{ SITENAME }}</h2>
|
||||
{% for article in dates %}
|
||||
<dt>{{ article.date.strftime('%a %d %B %Y') }}</dt>
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
|
||||
<dd>Catégorie : <a href="{{ article.category }}">{{ article.category }}</a></dd>
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<div id="content">
|
||||
<div class="post">
|
||||
<h2 class="title"><a href="{{ article.url }}">{{ article.title }}</a></h2>
|
||||
<p class="meta"><span class="date">Le {{ article.date.strftime('%a %d %B %Y') }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span> | Catégorie : <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></span></p>
|
||||
<p class="meta"><span class="date">Le {{ article.locale_date }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span> | Catégorie : <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></span></p>
|
||||
<p class="meta">Tags : {% for tag in article.tags %}
|
||||
<span><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> / </span>
|
||||
{% endfor %}</p>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<div id="content">
|
||||
<div class="post">
|
||||
<h2 class="title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
|
||||
<p class="meta"><span class="date">Le {{ article.date.strftime('%a %d %B %Y') }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span> | Catégorie : <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></span></p>
|
||||
<p class="meta"><span class="date">Le {{ article.date.locale_date }} </span><span class="posted">Par <a href="#">{{ article.author }}</a></span><span> | Catégorie : <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></span></p>
|
||||
<p class="meta">Tags : {% for tag in article.tags %}
|
||||
<span><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> / </span>
|
||||
{% endfor %}</p>
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
{% else %}
|
||||
<div class="post summary">
|
||||
<h2 class="title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
|
||||
<p class="meta"><span class="date">Le {{ article.date.strftime('%a %d %B %Y') }}</span><span class="posted">Par <a href="#">{{ article.author }}</a></span></p>
|
||||
<p class="meta"><span class="date">Le {{ article.locale_date }}</span><span class="posted">Par <a href="#">{{ article.author }}</a></span></p>
|
||||
<div style="clear: both;"> </div>
|
||||
<div class="entry">
|
||||
{{ article.summary }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue