diff --git a/site/config/config.php b/site/config/config.php index d64e8a2..faa0bf8 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -13,14 +13,15 @@ return [ 'format' => 'webp' ], 'srcsets' => [ - 'default' => [ - ['width' => 200, 'format' => 'webp'], - ['width' => 400, 'format' => 'webp'], - ['width' => 600, 'format' => 'webp'], - ['width' => 800, 'format' => 'webp'], - ['width' => 1024, 'format' => 'webp'], - ['width' => 1440, 'format' => 'webp'], - ['width' => 2048, 'format' => 'webp'] + 'default' => [200, 400, 600, 800, 1024, 1440, 2048], + 'webp' => [ + '200w' => ['width' => 200 * 1.5, 'format' => 'webp'], + '400w' => ['width' => 400 * 1.5, 'format' => 'webp'], + '600w' => ['width' => 600 * 1.5, 'format' => 'webp'], + '800w' => ['width' => 800 * 1.5, 'format' => 'webp'], + '1024w' => ['width' => 1024 * 1.5, 'format' => 'webp'], + '1440w' => ['width' => 1440 * 1.5, 'format' => 'webp'], + '2048w' => ['width' => 2048 * 1.5, 'format' => 'webp'] ], ], ], diff --git a/site/snippets/event-card.php b/site/snippets/event-card.php index 000474b..f5140e8 100644 --- a/site/snippets/event-card.php +++ b/site/snippets/event-card.php @@ -3,14 +3,14 @@