From 66d5bb150621e8d8b7b11e997b6a6a9afce8223e Mon Sep 17 00:00:00 2001 From: joak Date: Mon, 17 Aug 2020 19:20:18 +0200 Subject: update --- templates/blocks/picture.html | 9 +++++++-- templates/page.html | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'templates') 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) %} -{{ this.caption }} +
+ {% set img = record.attachments.images.get(this.url) %} + {{ this.caption }} + {% if this.caption %} +
{{this.caption}}
+ {% endif %} +
diff --git a/templates/page.html b/templates/page.html index 5d9297d..f5fa458 100644 --- a/templates/page.html +++ b/templates/page.html @@ -10,8 +10,9 @@ {% if work.selected %} {{work.content.blocks._flowblock}} + {% for item in work.content.blocks %} {% if item._flowblock == 'gallery' %} {% for i in item.gallery.blocks %} -- cgit v1.2.3