aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/sidebar.html
diff options
context:
space:
mode:
Diffstat (limited to 'pelican-bootstrap3/templates/includes/sidebar.html')
-rw-r--r--pelican-bootstrap3/templates/includes/sidebar.html22
1 files changed, 16 insertions, 6 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html
index ebb4d8a..ef6768b 100644
--- a/pelican-bootstrap3/templates/includes/sidebar.html
+++ b/pelican-bootstrap3/templates/includes/sidebar.html
@@ -9,9 +9,13 @@
<li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Social</span></h4>
<ul class="list-group" id="social">
{% for name, link in SOCIAL %}
- <li class="list-group-item"><a href="{{ link }}"><i
- class="fa fa-{{ name|lower|replace('+','-plus') }}-square fa-lg"></i> {{ name }}
- </a></li>
+ {% set name_sanitized = name|lower|replace('+','-plus')|replace(' ','-') %}
+ {% if name_sanitized in ['flickr', 'spotify', 'stack-overflow'] %}
+ {% set iconattributes = '"fa fa-' ~ name_sanitized ~ ' fa-lg"' %}
+ {% else %}
+ {% set iconattributes = '"fa fa-' ~ name_sanitized ~ '-square fa-lg"' %}
+ {% endif %}
+ <li class="list-group-item"><a href="{{ link }}"><i class={{ iconattributes }}></i> {{ name }}</a></li>
{% endfor %}
</ul>
</li>
@@ -43,15 +47,20 @@
<i class="fa fa-folder-open fa-lg"></i> {{ cat }}
</a>
</li>
- </ul>
{% endfor %}
+ </ul>
</li>
{% endif %}
{% if DISPLAY_TAGS_ON_SIDEBAR %}
+ {% if DISPLAY_TAGS_INLINE %}
+ {% set tags = tag_cloud | sort(attribute='0') %}
+ {% else %}
+ {% set tags = tag_cloud | sort(attribute='1') %}
+ {% endif %}
<li class="list-group-item"><a href="{{ SITEURL }}/{{ TAGS_URL }}"><h4><i class="fa fa-tags fa-lg"></i><span class="icon-label">Tags</span></h4></a>
- <ul class="list-group" id="tags">
- {% for tag in tag_cloud|sort(attribute='1') %}
+ <ul class="list-group {% if DISPLAY_TAGS_INLINE %}list-inline tagcloud{% endif %}" id="tags">
+ {% for tag in tags %}
<li class="list-group-item tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
{{ tag.0 }}
@@ -62,6 +71,7 @@
</li>
{% endif %}
{% include 'includes/github.html' %}
+ {% include 'includes/twitter_timeline.html' %}
{% include 'includes/links.html' %}
</ul>