summaryrefslogtreecommitdiff
path: root/design
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-03-14 11:25:58 -0500
committerluxagraf <sng@luxagraf.net>2018-03-14 11:25:58 -0500
commit2571ed84521e599d836f392fdb577d7d102007f3 (patch)
tree99e44cbe1af1ce918b417218c6e84dfee3e55a4f /design
parent9878845c7de3bbe939a264ea0d70186cb1e66f1a (diff)
added photo credit to caption below image
Diffstat (limited to 'design')
-rw-r--r--design/sass/_writing_details.scss6
-rw-r--r--design/templates/lib/img_picwide.html4
2 files changed, 8 insertions, 2 deletions
diff --git a/design/sass/_writing_details.scss b/design/sass/_writing_details.scss
index efa541d..c920735 100644
--- a/design/sass/_writing_details.scss
+++ b/design/sass/_writing_details.scss
@@ -774,6 +774,12 @@ figure.picwide img.picwide {
#wildlife {
max-width: 55%;
float: left;
+ margin-right: 2rem;
+ }
+ #recommended-reading{
+ img {
+ max-width: 180px;
+ }
}
}
aside {
diff --git a/design/templates/lib/img_picwide.html b/design/templates/lib/img_picwide.html
index d7f223a..10374be 100644
--- a/design/templates/lib/img_picwide.html
+++ b/design/templates/lib/img_picwide.html
@@ -1,7 +1,7 @@
{% load get_image_by_size %}
-{% if caption or exif %}
+{% if caption or exif or image.photo_credit_source %}
<figure class="picwide">{%endif%}
<a href="{%get_image_by_size image "original"%} " title="view larger image"><img class="picwide" sizes="(max-width: 1280px) 100vw, (min-width: 1281px) 1280px" srcset="{% for size in image.sizes.all%}{% get_image_by_size image size.name %} {{size.width}}w{% if forloop.last%}"{%else%}, {%endif%}{%endfor%}{% for size in image.sizes.all%}{%if not forloop.first and not forloop.last%} src="{% get_image_by_size image size.name%}"{%endif%}{%endfor%} alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}" data-jslghtbx="{%get_image_by_size image "original"%}" data-jslghtbx-group="group" {% if caption%}data-jslghtbx-caption="{{image.caption}}"{%endif%}></a>
-{% if caption or exif %}<figcaption>{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | <small>Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}</small>{% endif %}{% if caption or exif %}</figcaption>
+{% if caption or exif or image.photo_credit_source %}<figcaption>{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | <small>Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}</small>{% endif %}{% if image.photo_credit_source %}{% if image.photo_credit_url %}<a href="{{image.photo_credit_url}}">{%endif%}{{image.photo_credit_source}}{% if image.photo_credit_url %}</a>{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}</figcaption>
</figure>
{% endif %}