From 5a3d3d2e9d2ab67218144f7c2e35d70f47f9ad93 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 4 Jun 2018 20:27:23 -0500 Subject: converted jrnl entry to use image for featured image --- design/templates/archives/jrnl.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'design') diff --git a/design/templates/archives/jrnl.html b/design/templates/archives/jrnl.html index 94d1dd6..08c1584 100644 --- a/design/templates/archives/jrnl.html +++ b/design/templates/archives/jrnl.html @@ -1,5 +1,6 @@ {% extends 'base.html' %} {% load typogrify_tags %} +{% load get_image_by_size %} {% load pagination_tags %} {% block pagetitle %}Luxagraf | {% if region %}Travel Writing from {{region.name|title|smartypants|safe}}{%else%}Travel Writing from Around the World {%endif%}{% if page != "1" %} -- Page {{page}}{%endif%}{% endblock %} @@ -17,7 +18,9 @@

{% if region %}Journal entries from {%if region.name == 'United States'%}the United States{%else%}{{region.name|title|smartypants|safe}}{%endif%}{%else%}Journal {%endif%}

{% autopaginate object_list 24 %} {% for object in object_list %}
- {{ object.title }} + {% if object.featured_image %} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}{%else%} + {{ object.title }}{%endif%}

{{object.title|safe|smartypants|widont}}

-- cgit v1.2.3