diff options
author | luxagraf <sng@luxagraf.net> | 2018-06-05 18:11:13 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-06-05 18:11:13 -0500 |
commit | ec7b92046153498b54623f815576a8412631776f (patch) | |
tree | 611d89e3c09a33a564f2c4c76c9d9c6fd2706437 | |
parent | 0f5fb20c28a53685867818f07b8ce1b59e594ffd (diff) |
changed homepage to use new featured_image
-rw-r--r-- | design/templates/archives/homepage-light.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/design/templates/archives/homepage-light.html b/design/templates/archives/homepage-light.html index 4d24901..36e15b7 100644 --- a/design/templates/archives/homepage-light.html +++ b/design/templates/archives/homepage-light.html @@ -57,7 +57,8 @@ srcset="{% for size in image.sizes.all%}{% get_image_by_size image size.name %} {% for object in recent %} <article class="h-entry hentry {%cycle "odd" "even"%}" itemscope itemType="http://schema.org/Article"> <div class="post--image"> - <a href="{{object.get_absolute_url}}" title="{{object.title}}"><img src="{{object.get_image_url}}" alt="{{ object.title }}" class="u-photo post-image" itemprop="image" /></a> + <a href="{{object.get_absolute_url}}" title="{{object.title}}"> + <img src="{% for size in object.featured_image.sizes.all%}{% if size.name == 'featured_jrnl'%}{% get_image_by_size object.featured_image size.name %}{%endif%}{%endfor%}" alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}" /> </div> <h2 class="p-name entry-title post--title" itemprop="headline"><a href="{{object.get_absolute_url}}" class="u-url" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.title}}{%endif%}">{{object.title|safe|smartypants|widont}}</a></h2> <p class="p-author author hide" itemprop="author">Scott Gilbertson</p> |