<ul class="nav nav-list">

{% if HOSTS %}
<li class="nav-header"><h4><i class="fas fa-globe"></i> hosts</h4></li>
{% for name, link in HOSTS %}
    <li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
{% endif %}

{% if SITES %}
<li class="nav-header"><h4><i class="fas fa-server"></i> sites</h4></li>
{% for name, link in SITES %}
    <li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
{% endif %}

<li class="nav-header"><h4><i class="fas fa-rss"></i> feeds</h4></li>
<li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">atom.xml</a></li>
{% if FEED_RSS %}
<li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">rss.xml</a></li>
{% endif %}

{% if GIT %}
<li class="nav-header"><h4><i class="fab fa-git-alt"></i> git</h4></li>
{% for name, link in GIT %}
    <li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
{% endif %}

{% if SOCIAL %}
<li class="nav-header"><h4><i class="fas fa-user-plus"></i> social</h4></li>
{% for name, link in SOCIAL %}
    <li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
{% endif %}

<li class="nav-header"><h4><i class="fas fa-folder-open"></i> categories</h4></li>
{% for cat, null in categories %}
<li><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}

<li class="nav-header"><h4><i class="fas fa-tags"></i> tags</h4></li>
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
    <a href="{{ SITEURL }}/{{ tag.0.url }}">
        {{ tag.0 }}
    </a>
</li>
{% endfor %}

{% include 'twitter_profile.html' %}
{% include 'search_sidebar.html' %}

{% if SIDEBAR_CUSTOM %}
    {{ SIDEBAR_CUSTOM }}
{% endif %}
</ul>
