Increase width hero images are shown at

This saves bandwidth, as upscaling them won't reduce quality too much
This commit is contained in:
Jake Howard 2023-06-17 12:49:54 +01:00
parent e4a8fbd14f
commit 8506564d89
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -159,10 +159,13 @@ class BaseContentPage(BasePage, MetadataMixin):
@cached_property @cached_property
def hero_image_urls(self) -> dict: def hero_image_urls(self) -> dict:
return {width: self.hero_url(size) for size, width in UNSPLASH_SIZES.items()} return {
int(width * 1.5): self.hero_url(size)
for size, width in UNSPLASH_SIZES.items()
}
def hero_image_url(self) -> Optional[str]: def hero_image_url(self) -> Optional[str]:
return self.hero_url("full") return self.hero_url("regular")
@cached_property @cached_property
def list_image_url(self) -> Optional[str]: def list_image_url(self) -> Optional[str]: