summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/sightings/build.py2
-rw-r--r--app/sightings/migrations/0002_auto_20180205_1430.py5
-rw-r--r--design/templates/archives/homepage-light.html3
-rw-r--r--design/templates/archives/jrnl.html5
4 files changed, 6 insertions, 9 deletions
diff --git a/app/sightings/build.py b/app/sightings/build.py
index 9ba758f..d61c78a 100644
--- a/app/sightings/build.py
+++ b/app/sightings/build.py
@@ -9,7 +9,7 @@ class BuildSightings(BuildNew):
self.build_detail_view()
self.build_list_view(
base_path=reverse("sightings:list"),
- paginate_by=18
+ paginate_by=24
)
def get_model_queryset(self):
diff --git a/app/sightings/migrations/0002_auto_20180205_1430.py b/app/sightings/migrations/0002_auto_20180205_1430.py
index e917508..d936235 100644
--- a/app/sightings/migrations/0002_auto_20180205_1430.py
+++ b/app/sightings/migrations/0002_auto_20180205_1430.py
@@ -14,11 +14,6 @@ class Migration(migrations.Migration):
name='sighting',
options={'get_latest_by': 'pub_date', 'ordering': ['-pub_date']},
),
- migrations.RenameField(
- model_name='sighting',
- old_name='date',
- new_name='pub_date',
- ),
migrations.AlterField(
model_name='apclass',
name='kind',
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>
diff --git a/design/templates/archives/jrnl.html b/design/templates/archives/jrnl.html
index 08c1584..0c0c535 100644
--- a/design/templates/archives/jrnl.html
+++ b/design/templates/archives/jrnl.html
@@ -19,8 +19,9 @@
<article class="h-entry hentry {% cycle 'odd' 'even' %} {% cycle 'first' 'second' 'third' %}" itemscope itemType="http://schema.org/Article">
<div class="post--image">
<a href="{{object.get_absolute_url}}" title="{{object.title}}">{% if object.featured_image %}
- <img {% for size in object.featured_image.sizes.all%}src="{% 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%}">{%else%}
- <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" />{%endif%}</a>
+ <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%}" />
+{%else%}
+ <img src="{{object.get_image_url}}" alt="{{ object.title }}" class="u-photo post-image" itemprop="image" />{%endif%}</a>
</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"><span class="byline-author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Scott Gilbertson</span></span></p>