aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/sidebar.html
blob: 9f712b42907bebbe0368f9c0f94d1c57fcb09bfa (plain) (blame)
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
{% if DISPLAY_TAGS_ON_SIDEBAR is not defined %}
    {% set DISPLAY_TAGS_ON_SIDEBAR = True %}
{% endif %}

<aside>
    <section>
        <ul class="list-group list-group-flush">
            {% if SOCIAL %}
                <li class="list-group-item"><h4><i class="icon-home icon-large"></i>Social</h4></li>
                {% for name, link in SOCIAL %}
                    <li class="list-group-item"><a href="{{ link }}"><i
                            class="icon-{{ name }}-sign icon-large"></i>{{ name }}
                    </a></li>
                {% endfor %}
            {% endif %}

            {% if DISPLAY_RECENT_POSTS_ON_SIDEBAR %}
                {% if RECENT_POST_COUNT is not defined %}
                    {% set RECENT_POST_COUNT = 5 %}
                {% endif %}
                <li class="list-group-item"><h4><i class="icon-home icon-large"></i>Recent Posts</h4></li>
                    {% for article in articles[:RECENT_POST_COUNT] %}
                        <li class="list-group-item">
                            <a href="{{ SITEURL }}/{{ article.url }}">
                                {{ article.title }}
                            </a>
                        </li>
                    {% endfor %}
            {% endif %}

            {% if DISPLAY_CATEGORIES_ON_SIDEBAR %}

                <li class="list-group-item"><h4><i class="icon-home icon-large"></i>Categories</h4></li>
                    {% for cat, null in categories %}
                        <li class="list-group-item">
                            <a href="{{ SITEURL }}/{{ cat.url }}">
                                <i class="icon-folder-open icon-large"></i>{{ cat }}
                            </a>
                        </li>
                    {% endfor %}
            {% endif %}

            {% if DISPLAY_TAGS_ON_SIDEBAR %}
                <li class="list-group-item"><a href="{{ SITEURL }}/tags.html"><h4><i class="icon-tags icon-large"></i>Tags</h4></a></li>
                    {% for tag in tag_cloud|sort(attribute='1') %}
                        <li class="list-group-item tag-{{ tag.1 }}">
                            <a href="{{ SITEURL }}/{{ tag.0.url }}">
                                {{ tag.0 }}
                            </a>
                        </li>
                {% endfor %}
            {% endif %}
        </ul>
    </section>
    {% include 'includes/github.html' %}
</aside>