summaryrefslogtreecommitdiff
path: root/design
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-09-02 10:30:11 -0600
committerluxagraf <sng@luxagraf.net>2018-09-02 10:30:11 -0600
commite08504fd04a9a630803cedeea5d0d5e6aecca9f9 (patch)
tree371f62dafcef6c9354838f36ee89e838707dbe33 /design
parent0aef0852228b0d32981379a0fe6cc1847e7524ea (diff)
added new Home model to template
Diffstat (limited to 'design')
-rw-r--r--design/templates/archives/homepage-light.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/design/templates/archives/homepage-light.html b/design/templates/archives/homepage-light.html
index 36e15b7..1d02e86 100644
--- a/design/templates/archives/homepage-light.html
+++ b/design/templates/archives/homepage-light.html
@@ -19,10 +19,11 @@
<article class="h-entry hentry" itemscope itemType="http://schema.org/Article">
<div class="post--image">
<a href="{{object.get_absolute_url}}" title="{{object.title}}">
- {%for image in homepage.images.all%}
+ {%with image=homepage.featured_image%}
<img class="u-photo post-image homepage--hero" itemprop="image" sizes="(max-width: 960px) 100vw"
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%}">{%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%}">
+ {%endwith%}
</a>
</div>
<div class="hero--wrapper">