diff options
author | Alexis Metaireau <alexis@notmyidea.org> | 2011-02-14 18:56:14 +0000 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-02-14 18:56:14 +0000 |
commit | 51bb3d45d1b376ee3f9c498c4828b5e537494630 (patch) | |
tree | 90fd5bdb4dbb8afb3679e654cf699ae356472ed4 /lightweight/templates/sidebar.html | |
parent | c8b1a3e3f698399e0d7c7732fd1efc93bcfde44d (diff) | |
parent | 57f7c27797148a73279cfd58ab4bdf748928c04a (diff) | |
download | pelican-themes-51bb3d45d1b376ee3f9c498c4828b5e537494630.tar.gz |
Merge branch 'master' of https://github.com/Skami18/pelican-themes
Diffstat (limited to 'lightweight/templates/sidebar.html')
-rw-r--r-- | lightweight/templates/sidebar.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/lightweight/templates/sidebar.html b/lightweight/templates/sidebar.html new file mode 100644 index 0000000..d73fa91 --- /dev/null +++ b/lightweight/templates/sidebar.html @@ -0,0 +1,59 @@ +<aside id="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> |