From 35e56e4b0b3f12a61baeae354d36677032013c63 Mon Sep 17 00:00:00 2001 From: Mark Drummond Date: Thu, 5 May 2016 15:10:04 -0400 Subject: Added sidebar image header feature. --- pelican-bootstrap3/README.md | 7 ++++++- pelican-bootstrap3/templates/includes/sidebar-images.html | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) 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 %} +
  • {{ SIDEBAR_IMAGES_HEADER }}

    + {% endif %}