diff options
author | Mark Drummond <mark@markdrummond.ca> | 2016-05-05 15:10:04 -0400 |
---|---|---|
committer | Mark Drummond <mark@markdrummond.ca> | 2016-05-05 15:10:04 -0400 |
commit | 35e56e4b0b3f12a61baeae354d36677032013c63 (patch) | |
tree | 08d18a93bb2038c6c32f6e894f647fb8101c15b3 /pelican-bootstrap3 | |
parent | 189bd49623606aeadaf8c8bda55787aa19505be0 (diff) | |
download | pelican-themes-35e56e4b0b3f12a61baeae354d36677032013c63.zip pelican-themes-35e56e4b0b3f12a61baeae354d36677032013c63.tar.gz pelican-themes-35e56e4b0b3f12a61baeae354d36677032013c63.tar.bz2 |
Added sidebar image header feature.
Diffstat (limited to 'pelican-bootstrap3')
-rw-r--r-- | pelican-bootstrap3/README.md | 7 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/sidebar-images.html | 3 |
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 %} |