-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #716 from dmark/adds-links-to-sidebar-images
- Loading branch information
Showing
2 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 17 additions & 13 deletions
30
pelican-bootstrap3/templates/includes/sidebar/images.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
{% if SIDEBAR_IMAGES %} | ||
{% from 'includes/sidebar/macros.jinja' import title %} | ||
{% from 'includes/sidebar/macros.jinja' import title %} | ||
|
||
<!-- Sidebar/Images --> | ||
<li class="list-group-item"> | ||
{% if SIDEBAR_IMAGES_HEADER %} | ||
<h4>{{ title(SIDEBAR_IMAGES_HEADER, DISABLE_SIDEBAR_TITLE_ICONS, icon='external-link-square') }}</h4> | ||
{% endif %} | ||
<ul class="list-group" id="links"> | ||
{% for image in SIDEBAR_IMAGES %} | ||
<img width="100%" class="img-thumbnail" src="{{ image }}"/> | ||
{% endfor %} | ||
</ul> | ||
</li> | ||
<!-- End Sidebar/Images --> | ||
<!-- Sidebar/Images --> | ||
<li class="list-group-item"> | ||
{% if SIDEBAR_IMAGES_HEADER %} | ||
<h4>{{ title(SIDEBAR_IMAGES_HEADER, DISABLE_SIDEBAR_TITLE_ICONS, icon='external-link-square') }}</h4> | ||
{% endif %} | ||
<ul class="list-group" id="images"> | ||
{% for i in SIDEBAR_IMAGES %} | ||
{% if i[1] %} | ||
<a href="{{ i[1] }}" target="_blank"><img width="100%" class="img-thumbnail" src="{{ i[0] }}"/></a> | ||
{% else %} | ||
<img width="100%" class="img-thumbnail" src="{{ i[0] }}"/> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</li> | ||
<!-- End Sidebar/Images --> | ||
{% endif %} |