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 @@
|
|||
{% if article.author %}
|
||||
By <a class="url fn" href="#">{{ article.author }}</a>
|
||||
{% endif %}
|
||||
on <a>{{ article.date.strftime('%a %d %B %Y') }}</a>
|
||||
on <a>{{ article.date.locale_date }}</a>
|
||||
about <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>
|
||||
</div>
|
||||
{{ article.content }}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@
|
|||
<div class="info"></div>
|
||||
{% for article in articles %}
|
||||
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
|
||||
<p class="published">{{ article.date.strftime('%a %d %B %Y') }}</p>
|
||||
<p class="published">{{ article.locale_date }}</p>
|
||||
{{ article.summary }}
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
{% if SITESUBTITLE %} <div class="info">{{ SITESUBTITLE }}</div> {% endif %}
|
||||
{% for article in articles %}
|
||||
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
|
||||
<p class="published">{{ article.date.strftime('%a %d %B %Y') }}</p>
|
||||
<p class="published">{{ article.locale_date }}</p>
|
||||
{{ article.summary }}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue