File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ public function __construct(
23
23
* @var string[]
24
24
*/
25
25
private array $ tags = [],
26
- ) {
26
+ )
27
+ {
27
28
}
28
29
29
30
public function getIdentifier (): string
@@ -58,6 +59,6 @@ public function getTags(): array
58
59
59
60
public function getScreenshotFilename (?string $ format = null ): string
60
61
{
61
- return 'images/live_demo/ ' .$ this ->identifier .($ format ?? '' ).'.png ' ;
62
+ return 'images/live_demo/ ' .$ this ->identifier .($ format ? ( ' - ' . $ format ) : '' ).'.png ' ;
62
63
}
63
64
}
Original file line number Diff line number Diff line change 9
9
description : demo .longDescription |striptags |u.truncate (200 , ' ...' )
10
10
},
11
11
image : {
12
- url : absolute_url(asset(demo .screenshotFilename )),
12
+ url : absolute_url(asset(demo.screenshotFilename ( ' 1280x720 ' )),
13
13
width : 1280 ,
14
14
height : 720 ,
15
15
},
Original file line number Diff line number Diff line change 6
6
description : demo .description ,
7
7
canonical : url(demo .route ),
8
8
image : {
9
- url : absolute_url(asset(demo .screenshotFilename )),
10
- width : 640 ,
11
- height : 360 ,
9
+ url : absolute_url(asset(demo.screenshotFilename ( ' 1280x720 ' )),
10
+ width : 1080 ,
11
+ height : 720 ,
12
12
},
13
13
og : {
14
14
title : demo .name ~ ' - Symfony UX Demo' ,
You can’t perform that action at this time.
0 commit comments