diff options
author | Chris Ramsay <chris.ramsay@thesalegroup.co.uk> | 2016-11-03 11:25:28 +0000 |
---|---|---|
committer | Chris Ramsay <chris.ramsay@thesalegroup.co.uk> | 2016-11-03 11:25:28 +0000 |
commit | b7cd9bd0bf35cf17e7506ddb8f73b6c25c62ce6b (patch) | |
tree | c401756f9f6de41c655362d0818cffc1e88175c9 /pelican-bootstrap3 | |
parent | 336b10cce6b317ea829c55592239fc326bb4733c (diff) | |
download | pelican-themes-b7cd9bd0bf35cf17e7506ddb8f73b6c25c62ce6b.tar.gz |
Hide empty LI tags when at either end of a series
Diffstat (limited to 'pelican-bootstrap3')
-rw-r--r-- | pelican-bootstrap3/templates/includes/sidebar.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html index c59b8f0..79d3931 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> - |