summaryrefslogtreecommitdiff
path: root/templates/blocks
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blocks')
-rw-r--r--templates/blocks/picture.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/blocks/picture.html b/templates/blocks/picture.html
index a75eb3e..8008f92 100644
--- a/templates/blocks/picture.html
+++ b/templates/blocks/picture.html
@@ -1,2 +1,7 @@
-{% set img = record.attachments.images.get(this.url) %}
-<img id="{{ this.url|replace('.','') }}" class="bigimage" src="{{img.thumbnail(800)|url}}" alt="{{ this.caption }}">
+<div class="galleryImage">
+ {% set img = record.attachments.images.get(this.url) %}
+ <img id="{{ this.url|replace('.','') }}" class="bigimage" src="{{img.thumbnail(800)|url}}" alt="{{ this.caption }}">
+ {% if this.caption %}
+ <div class="caption">{{this.caption}}</div>
+ {% endif %}
+</div>