Skip to content

Commit 7c8eca6

Browse files
committed
Update home page hero to use webp
1 parent bf156b5 commit 7c8eca6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

home/templates/home/hero_page_listing.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<div class="col-12">
55
<a href={{page.url}} title={{page.title}}>
66
<div class="hero-image">
7-
{% image page.header_image fill-700x300 %}
7+
<picture>
8+
{% image page.header_image fill-1400x600 format-webp as webp_thumb %}
9+
<source srcset="{{ webp_thumb.url }}" media="(min-width: 0px)">
10+
{% image page.header_image fill-1400x600 format-jpeg %}
11+
</picture>
812
{% if page.category.title != "Blog Posts" %}
913
<label class="category-badge">
1014
{{page.category.title|unpluralize_category}}

spritesanddice/templatetags/menu_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def blog_posts(context, blog_folder=None, tag=None, user=None, page_number=1):
4848
query = query.live().public().order_by('-go_live_at')
4949

5050
# Pagination
51-
paginator = Paginator(query, 20)
51+
paginator = Paginator(query, 25)
5252
try:
5353
pages = paginator.page(page_number)
5454
except PageNotAnInteger: # First Page

0 commit comments

Comments
 (0)