aboutsummaryrefslogtreecommitdiffstats
path: root/lightweight/templates/sidebar.html
blob: 8e25cbf322e406d2b3314a07fd93bb17e96985a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 }}/{{ cat.url }}">{{ 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.url}}">{{ 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>