aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/sidebar.html
diff options
context:
space:
mode:
authorDaan Debie <ddebie@universitplatform.com>2016-04-22 15:35:07 +0200
committerDaan Debie <ddebie@universitplatform.com>2016-04-22 15:35:07 +0200
commitfaa85d6112a759767a4f327e35a07fa55d9e747e (patch)
tree903ad6ecc488f2158ec40d8fa45a39d5542a2f8b /pelican-bootstrap3/templates/includes/sidebar.html
parent2cd39ad5c0c03818900611ddee699b2a6acc2453 (diff)
downloadpelican-themes-faa85d6112a759767a4f327e35a07fa55d9e747e.tar.gz
Update pelican-bootstrap3 to latest version, donate to Pelican community
Diffstat (limited to 'pelican-bootstrap3/templates/includes/sidebar.html')
-rw-r--r--pelican-bootstrap3/templates/includes/sidebar.html37
1 files changed, 33 insertions, 4 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html
index db8d0a3..ea4134d 100644
--- a/pelican-bootstrap3/templates/includes/sidebar.html
+++ b/pelican-bootstrap3/templates/includes/sidebar.html
@@ -7,14 +7,18 @@
{% if SOCIAL %}
<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 %}
- {% set name_sanitized = name|lower|replace('+','-plus')|replace(' ','-') %}
+ {% for s in SOCIAL %}
+ {% if s[2] %}
+ {% set name_sanitized = s[2]|lower|replace('+','-plus')|replace(' ','-') %}
+ {% else %}
+ {% set name_sanitized = s[0]|lower|replace('+','-plus')|replace(' ','-') %}
+ {% endif %}
{% if name_sanitized in ['flickr', 'spotify', 'stack-overflow', 'weibo'] %}
{% 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>
+ <li class="list-group-item"><a href="{{ s[1] }}"><i class={{ iconattributes }}></i> {{ s[0] }}</a></li>
{% endfor %}
</ul>
</li>
@@ -51,7 +55,7 @@
</li>
{% endif %}
- {% if DISPLAY_TAGS_ON_SIDEBAR %}
+ {% if 'tag_cloud' in PLUGINS and DISPLAY_TAGS_ON_SIDEBAR %}
{% if DISPLAY_TAGS_INLINE %}
{% set tags = tag_cloud | sort(attribute='0') %}
{% else %}
@@ -69,9 +73,34 @@
</ul>
</li>
{% endif %}
+
+ {% if DISPLAY_SERIES_ON_SIDEBAR %}
+ {% if article %}
+ {% if article.series %}
+ <li class="list-group-item"><h4><i class="fa fa-tags fa-list-ul"></i><span class="icon-label">Series</span></h4>
+ <ul class="list-group">
+ <li class="list-group-item">
+ {% if article.series.previous %}
+ <h5></i> Previous article</h5>
+ <a href="{{ SITEURL }}/{{ article.series.previous.url }}">{{ article.series.previous.title }}</a>
+ {% endif %}
+ </li>
+ <li class="list-group-item">
+ {% if article.series.next %}
+ <h5>Next article</h5>
+ <a href="{{ SITEURL }}/{{ article.series.next.url }}">{{ article.series.next.title }}</a>
+ {% endif %}
+ </li>
+ </ul>
+ </li>
+ {% endif%}
+ {% endif %}
+ {% endif %}
+
{% include 'includes/github.html' %}
{% include 'includes/twitter_timeline.html' %}
{% include 'includes/links.html' %}
+ {% include 'includes/sidebar-images.html' %}
</ul>
</section>