Edit srcsets presets
This commit is contained in:
parent
69092bf6f9
commit
623ed4d223
1 changed files with 2 additions and 5 deletions
|
@ -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]
|
||||
]
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue