aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/sidebar.html
diff options
context:
space:
mode:
authorDaan Debie <d.debie@thenewmotion.com>2014-08-21 18:45:11 +0200
committerDaan Debie <d.debie@thenewmotion.com>2014-08-21 18:45:11 +0200
commit352965e0445417584f6c3fb3e8fef5d87db4f37f (patch)
treedb9a4e7f5b760da37c0b506a450ca809496fbcc7 /pelican-bootstrap3/templates/includes/sidebar.html
parenta928687830876af8c919606bae47195af65bc82d (diff)
downloadpelican-themes-352965e0445417584f6c3fb3e8fef5d87db4f37f.tar.gz
Updated pelican-bootstrap3 to the latest version
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>