aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2016-06-20 05:29:39 -0700
committerGitHub <noreply@github.com>2016-06-20 05:29:39 -0700
commitd693ec4fb5afa953d76680781113eed374ff32c2 (patch)
tree0f54d292d8ccaefaeb70965dd16eef51712c8ac5
parent4a43de2711671f9961a45c96c6ef1f71f54c99f5 (diff)
parent35e56e4b0b3f12a61baeae354d36677032013c63 (diff)
downloadpelican-themes-d693ec4fb5afa953d76680781113eed374ff32c2.tar.gz
Merge pull request #388 from dmark/sidebar-images
pelican-bootstrap3: Add sidebar image header
-rw-r--r--pelican-bootstrap3/README.md7
-rw-r--r--pelican-bootstrap3/templates/includes/sidebar-images.html3
2 files changed, 9 insertions, 1 deletions
diff --git a/pelican-bootstrap3/README.md b/pelican-bootstrap3/README.md
index 6e2bf4d..b1525c4 100644
--- a/pelican-bootstrap3/README.md
+++ b/pelican-bootstrap3/README.md
@@ -293,10 +293,15 @@ The footer will display a copyright message using the AUTHOR variable and the ye
### Sidebar Images
-Include a series of images in the sidebar.
+Include a series of images in the sidebar, with an optional header:
+SIDEBAR_IMAGES_HEADER = 'My Images'
SIDEBAR_IMAGES = ["/path/to/image1.png", "/path/to/image2.png"]
+Originally developed for including certification marks in your sidebar. E.g.,
+
+http://dmark.github.io
+
## Live example
[This is the website of the original author](http://dandydev.net)
diff --git a/pelican-bootstrap3/templates/includes/sidebar-images.html b/pelican-bootstrap3/templates/includes/sidebar-images.html
index 59282ab..4bc7499 100644
--- a/pelican-bootstrap3/templates/includes/sidebar-images.html
+++ b/pelican-bootstrap3/templates/includes/sidebar-images.html
@@ -1,4 +1,7 @@
{% if SIDEBAR_IMAGES %}
+ {% if SIDEBAR_IMAGES_HEADER %}
+ <li class="list-group-item"><h4><i class="fa fa-external-link-square fa-lg"></i><span class="icon-label">{{ SIDEBAR_IMAGES_HEADER }}</span></h4>
+ {% endif %}
<li class="list-group-item">
<ul class="list-group" id="links">
{% for image in SIDEBAR_IMAGES %}