Skip to content
Permalink
Browse files

Rename and add missing template file.

  • Loading branch information
ralsina committed May 5, 2017
1 parent f4cec0d commit 06e9713a710f3e56bd747fcb13035d48d5a97b74
@@ -16,7 +16,7 @@ with the bootstrap-based themes
gallery in bootstrap, either.

* It will look bad in most other themes. But you can customize it by
creating your own gallery_fancy.tmpl. Here's the one that comes with
creating your own gallery_directive.tmpl. Here's the one that comes with
the plugin for inspiration:

```html
@@ -91,7 +91,7 @@ def run(self):
context.update(self.site.GLOBAL_CONTEXT)
context.update(kw)
output = self.site.template_system.render_template(
'gallery_fancy.tmpl',
'gallery_directive.tmpl',
None,
context
)
@@ -0,0 +1,24 @@
## -*- coding: utf-8 -*-

%if post:
<p>
${post.text()}
</p>
%endif

<div id="gallery_container"></div>
%if photo_array:
<div class="row">
%for image in photo_array:
<div class="col-xs-6 col-md-3">
<a href="${image['url']}" class="thumbnail image-reference" title="${image['title']|h}">
<img src="${image['url_thumb']}" alt="${image['title']|h}" />
</a>
</div>
%endfor
</div>

<ul class="thumbnails">
<li>
</ul>
%endif

0 comments on commit 06e9713

Please sign in to comment.
You can’t perform that action at this time.