From dc214056449119b29ad7b19b8d47e81b343ff453 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 28 Apr 2013 19:54:45 +0200 Subject: Updated theme and templates Updated to pelican 3.2 --- theme/templates/archives.html | 2 +- theme/templates/article.html | 52 ++++++++++++++++++++++--------------------- theme/templates/category.html | 3 ++- theme/templates/index.html | 3 ++- theme/templates/menu.html | 6 ++--- theme/templates/meta.html | 17 +++++++++----- theme/templates/page.html | 2 +- theme/templates/tag.html | 3 ++- 8 files changed, 50 insertions(+), 38 deletions(-) (limited to 'theme/templates') diff --git a/theme/templates/archives.html b/theme/templates/archives.html index f3c2990..f0441d9 100755 --- a/theme/templates/archives.html +++ b/theme/templates/archives.html @@ -3,7 +3,7 @@ {%block title %}{{ SITENAME }} - Archives{%endblock%} {% block content %} -

Archives

+

Archives

{% for article in dates %} diff --git a/theme/templates/article.html b/theme/templates/article.html index 1328834..044c386 100755 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -3,38 +3,40 @@ {% block title %}{{ SITENAME }} - {{ article.title |striptags }}{% endblock %} {% block content %} -
-

{{ article.title }}

- {%include 'meta.html'%} + -
- {{ article.content }} -
+ {% if DISQUS_SITENAME %} +
+

Commentaires :

+
+ +
+ {% endif %} -
+ {% if article.related_posts and article.related_posts %} - {% if DISQUS_SITENAME %} -
-

Commentaires :

-
- -
- {% endif %} +

À lire aussi :

-{# - {% if article.related_posts %} {% endif %} -#} + {% endblock %} diff --git a/theme/templates/category.html b/theme/templates/category.html index f476d93..b323285 100755 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -2,7 +2,7 @@ {% block title %}{{ SITENAME }} - {{ category}}{% endblock %} {% block content %} -

Articles dans la catégorie «{{ category }}»

+

Articles dans la catégorie « {{ category }} »

{% if articles %} {% for article in (articles_page.object_list if articles_page else articles) %}
@@ -11,6 +11,7 @@
{{ article.summary }} +
{% if not loop.last %}
{% endif %} diff --git a/theme/templates/index.html b/theme/templates/index.html index 245c708..d045910 100755 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -5,11 +5,12 @@ {% if articles %} {% for article in (articles_page.object_list if articles_page else articles) %}
-

{{ article.title }}

+

{{ article.title }}

{{ article.summary }} +
{% if not loop.last %}
{% endif %} diff --git a/theme/templates/menu.html b/theme/templates/menu.html index 037d85a..bab98fa 100755 --- a/theme/templates/menu.html +++ b/theme/templates/menu.html @@ -1,6 +1,6 @@ {% macro submenu(elements, link, name) -%} {% if elements %} -
  • {{name}} +
  • {{name}}