From 6bdd8eff6061abfef995042a189ea5fd1e1a2e94 Mon Sep 17 00:00:00 2001 From: skami Date: Mon, 14 Feb 2011 15:51:21 +0100 Subject: =?UTF-8?q?Th=C3=A8me=20termin=C3=A9=20-=20d=C3=A9cidemment,=20j'a?= =?UTF-8?q?i=20du=20mal=20avec=20GIT!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightweight/LISEZ-MOI.rst | 17 ++++++++++- "lightweight/aper\303\247u.png" | Bin 52315 -> 63426 bytes lightweight/templates/archives.html | 21 +++++++++++++ lightweight/templates/article.html | 38 +++++++++++++++-------- lightweight/templates/base.html | 13 +++++++- lightweight/templates/category.html | 19 ++++++++++++ lightweight/templates/index.html | 7 +---- lightweight/templates/menu.html | 4 +++ lightweight/templates/sidebar.html | 58 ++++++++++++++++++++++++++++++++++-- lightweight/templates/tag.html | 19 ++++++++++++ lightweight/templates/tags.html | 12 ++++++++ 11 files changed, 186 insertions(+), 22 deletions(-) (limited to 'lightweight') diff --git a/lightweight/LISEZ-MOI.rst b/lightweight/LISEZ-MOI.rst index 288ac1c..56a60ef 100644 --- a/lightweight/LISEZ-MOI.rst +++ b/lightweight/LISEZ-MOI.rst @@ -1 +1,16 @@ -Attention, ce thème n'est pas terminé, il pourrait ne pas fonctionner correctoment sur votre site... +Thème «Lightweight» pour pelican +################################ + +Description +=========== + +:Créé le: 14 février 2011 +:Technologies utilisées: xHTML5, CSS 1-3, polices TTF +:Couleurs utilisées: Tons froids (gris/bleu) +:Design extensif: Oui +:Testé sous: Mozilla Firefox 4.0b10, Chromium 9.0.597.83, ELinks 0.12pre5 +:Langue: Français +:Détails: Voire capture d'écran et source + + + diff --git "a/lightweight/aper\303\247u.png" "b/lightweight/aper\303\247u.png" index 82cedc1..f3ad91b 100644 Binary files "a/lightweight/aper\303\247u.png" and "b/lightweight/aper\303\247u.png" differ diff --git a/lightweight/templates/archives.html b/lightweight/templates/archives.html index e69de29..4d6234f 100644 --- a/lightweight/templates/archives.html +++ b/lightweight/templates/archives.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{%block title %}{{ SITENAME }} - Archives{%endblock%} + +{% block content %} +

Archives

+ + + + + + + {% for article in dates %} + + + + + {% endfor %} + +
DateArticle
{{ article.date.strftime(DEFAULT_DATE_FORMAT or '%a %d %B %Y') }}{{ article.title }}
+{% endblock %} diff --git a/lightweight/templates/article.html b/lightweight/templates/article.html index b4d872e..68556bf 100644 --- a/lightweight/templates/article.html +++ b/lightweight/templates/article.html @@ -1,17 +1,31 @@ {% extends "base.html" %} + {% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %} -{% block content %} -
-

{{ article.title }}

-
-

- Posté{%if article.date %} le {% endif %}{% if article.author %} par {{ article.author }}{% endif %} dans «{{ article.category }}». - {% if articles.tags %}
Tags : {% for tag in article.tags %}{% if loop.index > 1%}, {% endif %}{{ tag }}{% endfor %}{%endif%} -

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

Commentaires:

+
+ +
+ {% endif %} + {% endblock %} diff --git a/lightweight/templates/base.html b/lightweight/templates/base.html index 14a0d11..a2d3a9f 100644 --- a/lightweight/templates/base.html +++ b/lightweight/templates/base.html @@ -6,7 +6,18 @@ - + {% if GOOGLE_ANALYTICS %} + + + {% endif %} +
diff --git a/lightweight/templates/category.html b/lightweight/templates/category.html index e69de29..764a6f9 100644 --- a/lightweight/templates/category.html +++ b/lightweight/templates/category.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} - {{ category}}{% endblock %} + +{% block content %} +

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

+ {% if articles %} + {% for article in articles %} + + {% endfor %} + {% endif %} +{% endblock %} diff --git a/lightweight/templates/index.html b/lightweight/templates/index.html index b51a318..d5879bd 100644 --- a/lightweight/templates/index.html +++ b/lightweight/templates/index.html @@ -6,12 +6,7 @@ {% for article in articles %}

{{ article.title }}

-
-

- Posté{%if article.date %} le {% endif %}{% if article.author %} par {{ article.author }}{% endif %} dans «{{ article.category }}». - {% if articles.tags %}
Tags : {% for tag in article.tags %}{% if loop.index > 1%}, {% endif %}{{ tag }}{% endfor %}{%endif%} -

-
+ {%include 'meta.html'%}
{{ article.summary }}
diff --git a/lightweight/templates/menu.html b/lightweight/templates/menu.html index 88d5d7a..9a9d011 100644 --- a/lightweight/templates/menu.html +++ b/lightweight/templates/menu.html @@ -4,6 +4,10 @@ {% for p in PAGES %} {{ p.title }} {% endfor %} + {% else %} + Catégories + Mots-clés {% endif %} + Archives diff --git a/lightweight/templates/sidebar.html b/lightweight/templates/sidebar.html index 964b43c..d73fa91 100644 --- a/lightweight/templates/sidebar.html +++ b/lightweight/templates/sidebar.html @@ -1,5 +1,59 @@ diff --git a/lightweight/templates/tag.html b/lightweight/templates/tag.html index e69de29..cb5038c 100644 --- a/lightweight/templates/tag.html +++ b/lightweight/templates/tag.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} - «{{ tag }}»{% endblock %} + +{% block content %} +

Articles avec le mot-clé «{{ tag }}»

+ {% if articles %} + {% for article in articles %} + + {% endfor %} + {% endif %} +{% endblock %} diff --git a/lightweight/templates/tags.html b/lightweight/templates/tags.html index e69de29..60ac7db 100644 --- a/lightweight/templates/tags.html +++ b/lightweight/templates/tags.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Mots-clés{% endblock %} + +{% block content %} +

Liste des mots-clés

+
    +{% for tag, articles in tags %} +
  • {{ tag }}

  • +{% endfor %} +
+{% endblock %} -- cgit v1.1