From 27aaf92d26eb75157dcfa923a5d63ea63feeb98c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 7 Feb 2019 09:54:16 -0600 Subject: updated stylesheets and added essays --- design/templates/essays/entry_list.html | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 design/templates/essays/entry_list.html (limited to 'design/templates/essays/entry_list.html') diff --git a/design/templates/essays/entry_list.html b/design/templates/essays/entry_list.html new file mode 100644 index 0000000..d58bd05 --- /dev/null +++ b/design/templates/essays/entry_list.html @@ -0,0 +1,45 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} +{% 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 %} +{% block metadescription %}{% if region %}Travel writing, essays and dispatches from {{region.name|title|smartypants|safe}}{%else%}Travel writing, essays and dispatches from around the world{%endif%} Page {{page}}{% endblock %} +{%block bodyid%}id="writing" class="archive"{%endblock%} + + +{% block primary %} +
+

{% 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 %} +
+
+ {% if object.featured_image %} + {% include "lib/img_archive.html" with image=object.featured_image %} + {%else%} + {{ object.title }}{%endif%} +
+

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

+ + +

+ + {% if object.country.name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.state.name}}, U.S.{%else%}{{object.location.name|smartypants|safe}}, {{object.country.name}}{%endif%} + – + + {{object.dek|safe}} + +

+
{% endfor %} +
+ +{% endblock %} + + + +{% block js %}{% endblock%} -- cgit v1.2.3