Increase width hero images are shown at
This saves bandwidth, as upscaling them won't reduce quality too much
This commit is contained in:
parent
e4a8fbd14f
commit
8506564d89
1 changed files with 5 additions and 2 deletions
|
@ -159,10 +159,13 @@ class BaseContentPage(BasePage, MetadataMixin):
|
|||
|
||||
@cached_property
|
||||
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]:
|
||||
return self.hero_url("full")
|
||||
return self.hero_url("regular")
|
||||
|
||||
@cached_property
|
||||
def list_image_url(self) -> Optional[str]:
|
||||
|
|
Loading…
Reference in a new issue