Skip to content

Commit

Permalink
Merge pull request #388 from dmark/sidebar-images
Browse files Browse the repository at this point in the history
pelican-bootstrap3: Add sidebar image header
  • Loading branch information
justinmayer committed Jun 20, 2016
2 parents 4a43de2 + 35e56e4 commit d693ec4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pelican-bootstrap3/README.md
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions 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 %}
Expand Down

0 comments on commit d693ec4

Please sign in to comment.