aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2016-12-13 08:35:37 -0800
committerGitHub <noreply@github.com>2016-12-13 08:35:37 -0800
commitca26088a0031b4516b2953a097953ae3085362fd (patch)
tree3499979c5bd442fbac01a822eb51735a968ea5f3 /pelican-bootstrap3
parente351c04203887ea069621ba751d6194d854b9b0f (diff)
parentb7cd9bd0bf35cf17e7506ddb8f73b6c25c62ce6b (diff)
downloadpelican-themes-ca26088a0031b4516b2953a097953ae3085362fd.tar.gz
Merge pull request #450 from chrisramsay/fix/series-display-sidebar
pelican-bootstrap3: Hide empty <li> tags when at either end of a series
Diffstat (limited to 'pelican-bootstrap3')
-rw-r--r--pelican-bootstrap3/templates/includes/sidebar.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html
index 2698338..4d7e6bb 100644
--- a/pelican-bootstrap3/templates/includes/sidebar.html
+++ b/pelican-bootstrap3/templates/includes/sidebar.html
@@ -79,18 +79,18 @@
{% 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 %}
+ <li class="list-group-item">
<h5></i> Previous article</h5>
<a href="{{ SITEURL }}/{{ article.series.previous.url }}">{{ article.series.previous.title }}</a>
- {% endif %}
</li>
- <li class="list-group-item">
+ {% endif %}
{% if article.series.next %}
+ <li class="list-group-item">
<h5>Next article</h5>
<a href="{{ SITEURL }}/{{ article.series.next.url }}">{{ article.series.next.title }}</a>
- {% endif %}
</li>
+ {% endif %}
</ul>
</li>
{% endif%}
@@ -103,4 +103,3 @@
{% include 'includes/sidebar-images.html' %}
</ul>
</section>
-