fix: #featured-bg-{{id}} not resizing Unsplash images (#549)

This commit is contained in:
Paulo Pertierra 2024-09-27 20:25:42 +08:00 committed by GitHub
parent 493be199b3
commit 5aaee33103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,11 +54,11 @@ into the {body} of the default.hbs template --}}
{{#if feature_image}} {{#if feature_image}}
<style> <style>
#featured-bg-{{id}} { #featured-bg-{{id}} {
background-image: url({{img_url feature_image size='l'}}); background-image: url({{{img_url feature_image size='l'}}});
} }
@media(max-width: 768px) { @media(max-width: 768px) {
#featured-bg-{{id}} { #featured-bg-{{id}} {
background-image: url({{img_url feature_image size='m'}}); background-image: url({{{img_url feature_image size='m'}}});
} }
} }
</style> </style>