From a5efbdabe83599f3d036360fc1fea8cc86dc8a94 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 23 Mar 2016 22:16:44 -0400 Subject: added a new image parser to pull in images from the LuxImage model and inline them with size and srcset support --- design/templates/lib/img_picfull.html | 9 +++++++++ design/templates/lib/img_picwide.html | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 design/templates/lib/img_picfull.html create mode 100644 design/templates/lib/img_picwide.html (limited to 'design/templates/lib') diff --git a/design/templates/lib/img_picfull.html b/design/templates/lib/img_picfull.html new file mode 100644 index 0000000..5dba01d --- /dev/null +++ b/design/templates/lib/img_picfull.html @@ -0,0 +1,9 @@ +{% load get_image_by_size %} +{% if caption %} +
{%endif%} +{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {% if caption %}
{{image.caption}}
+
+{% endif %} diff --git a/design/templates/lib/img_picwide.html b/design/templates/lib/img_picwide.html new file mode 100644 index 0000000..065ff6c --- /dev/null +++ b/design/templates/lib/img_picwide.html @@ -0,0 +1,9 @@ +{% load get_image_by_size %} +{% if caption %} +
{%endif%} +{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {% if caption %}
{{image.caption}}
+
+{% endif %} -- cgit v1.2.3