Edit srcsets presets

This commit is contained in:
Paul Nicoué 2022-08-04 16:45:53 +02:00
parent 69092bf6f9
commit 623ed4d223

View file

@ -21,10 +21,6 @@ return [
'file_type' => $file->type()
]);
}
},
'kirbytext:after' => function (string $text) {
// Replace any HTML <h1> or <h2> tag by <h3> tag after Markdown parsing
return preg_replace(['/<h1>|<h2>/', '/<\/h1>|<\/h2>/'], ['<h3>', '</h3>'], $text);
}
],
// Thumbnails and srcsets presets
@ -33,7 +29,8 @@ return [
'default' => [
'640w' => ['width' => 640, 'quality' => 80],
'1280w' => ['width' => 1280, 'quality' => 80],
'1920w' => ['width' => 1920, 'quality' => 80]
'1920w' => ['width' => 1920, 'quality' => 80],
'2560w' => ['width' => 2560, 'quality' => 80]
]
]
]