From f096b05e49fdd04c6a484e2b6182e68d2ff9a4a7 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 21 Sep 2016 12:47:49 -0400 Subject: added html rendering to picture captions --- design/templates/lib/img_picfull.html | 2 +- design/templates/lib/img_picwide.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'design/templates/lib') diff --git a/design/templates/lib/img_picfull.html b/design/templates/lib/img_picfull.html index 5dba01d..7e9c23e 100644 --- a/design/templates/lib/img_picfull.html +++ b/design/templates/lib/img_picfull.html @@ -4,6 +4,6 @@ {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} - {% if caption %}
{{image.caption}}
+ {% if caption %}
{{image.caption|safe}}
{% endif %} diff --git a/design/templates/lib/img_picwide.html b/design/templates/lib/img_picwide.html index be2b779..4e96951 100644 --- a/design/templates/lib/img_picwide.html +++ b/design/templates/lib/img_picwide.html @@ -4,6 +4,6 @@ {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} -{% if caption or exif %}
{% endif %}{% if caption %}{{image.caption}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if caption or exif %}
+{% if caption or exif %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if caption or exif %}
{% endif %} -- cgit v1.2.3