aboutsummaryrefslogtreecommitdiffstats
path: root/lightweight/templates/sidebar.html
diff options
context:
space:
mode:
authorskami <skami@skami-laptop.dyndns.org>2011-02-14 15:51:21 +0100
committerskami <skami@skami-laptop.dyndns.org>2011-02-14 15:51:21 +0100
commit6bdd8eff6061abfef995042a189ea5fd1e1a2e94 (patch)
treec4b20179ec23bfc8b6263ff0ad9fe7951ef1cc9c /lightweight/templates/sidebar.html
parent7611f3de376ba45fc37c7fdab3a37ab250f8da1b (diff)
downloadpelican-themes-6bdd8eff6061abfef995042a189ea5fd1e1a2e94.tar.gz
Thème terminé - décidemment, j'ai du mal avec GIT!
Diffstat (limited to 'lightweight/templates/sidebar.html')
-rw-r--r--lightweight/templates/sidebar.html58
1 files changed, 56 insertions, 2 deletions
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 @@
<aside id="sidebar">
- <h2>Sidebar</h2>
-{% block sidebar %}
+{% block sidebar_header %}
{% endblock %}
+
+ <div class="widget" id="categories">
+ <h2>Catégories</h2>
+ <ul>
+ {% for cat, null in categories %}
+ <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+
+ {% if article and article.tags %}
+ <div class="widget" id="tags">
+ <h2>Mots-clés:</h2>
+ <ul>
+ {% for tag in article.tags %}
+ <li><a href="{{SITEURL}}/tag/{{tag}}.html">{{ tag }}</a></li>
+ {% endfor %}
+ <li><a class="more" href="{{SITEURL}}/tags.html">Plus...</a></li>
+ </ul>
+ </div>
+ {%endif%}
+
+ {% if LINKS %}
+ <div class="widget" id="blogroll">
+ <h2>Liens</h2>
+ <ul>
+ {% for name, link in LINKS %}
+ <li><a href="{{ link }}">{{ name }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+
+ {% if SOCIAL %}
+ <div class="widget" id="social">
+ <h2>Réseaux sociaux</h2>
+ <ul>
+ {% for name, link in SOCIAL %}
+ <li><a href="{{ link }}">{{ name }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+
+ {% if FEED or FEED_RSS %}
+ <div class="widget" id="subscribe">
+ <h2>S'abonner</h2>
+ <ul>
+ <li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">Flux ATOM</a></li>
+ {% if FEED_RSS %}
+ <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">Flux RSS</a></li>
+ {% endif %}
+ </ul>
+ </div>
+ {% endif %}
</aside>