@@ -280,7 +280,7 @@ |
||
280 | 280 | * |
281 | 281 | * @return Asset |
282 | 282 | */ |
283 | - public function asset($path, array|null $options = null): Asset |
|
283 | + public function asset($path, array | null $options = null): Asset |
|
284 | 284 | { |
285 | 285 | if (!\is_string($path) && !\is_array($path)) { |
286 | 286 | throw new RuntimeException(sprintf('Argument of "%s()" must a string or an array.', \Cecil\Util::formatMethodName(__METHOD__))); |
@@ -155,7 +155,7 @@ |
||
155 | 155 | /** |
156 | 156 | * Returns the configuration file name or path, if file exists, otherwise default name or false. |
157 | 157 | */ |
158 | - protected function findConfigFile(string $nameOrPath): string|false |
|
158 | + protected function findConfigFile(string $nameOrPath): string | false |
|
159 | 159 | { |
160 | 160 | $config = [ |
161 | 161 | 'name' => self::CONFIG_FILE[0], |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ], |
48 | 48 | ], |
49 | 49 | 'theme' => [], |
50 | - 'taxonomies' => [ // default taxonomies |
|
50 | + 'taxonomies' => [// default taxonomies |
|
51 | 51 | 'tags' => 'tag', |
52 | 52 | 'categories' => 'category', // can be disabled with the special "disabled" value |
53 | 53 | ], |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | 'capture' => 'before', // part to capture, `before` or `after` the separator (`before` by default) |
119 | 119 | ], |
120 | 120 | ], |
121 | - 'generators' => [ // list of pages generators class, ordered by weight |
|
121 | + 'generators' => [// list of pages generators class, ordered by weight |
|
122 | 122 | 10 => 'Cecil\Generator\DefaultPages', |
123 | 123 | 20 => 'Cecil\Generator\VirtualPages', |
124 | 124 | 30 => 'Cecil\Generator\ExternalBody', |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | 80 => 'Cecil\Generator\Alias', |
130 | 130 | 90 => 'Cecil\Generator\Redirect', |
131 | 131 | ], |
132 | - 'default' => [ // default generated pages |
|
132 | + 'default' => [// default generated pages |
|
133 | 133 | 'index' => [ |
134 | 134 | 'path' => '', |
135 | 135 | 'title' => 'Home', |
@@ -230,9 +230,9 @@ discard block |
||
230 | 230 | 'enabled' => false, // `html` filter: creates and adds a WebP image as a `source` (`false` by default) |
231 | 231 | ], |
232 | 232 | 'cdn' => [ |
233 | - 'enabled' => false, // enables Image CDN (`false` by default) |
|
234 | - 'canonical' => true, // is `image_url` must be canonical or not (`true` by default) |
|
235 | - 'remote' => true, // includes remote images (`true` by default) |
|
233 | + 'enabled' => false, // enables Image CDN (`false` by default) |
|
234 | + 'canonical' => true, // is `image_url` must be canonical or not (`true` by default) |
|
235 | + 'remote' => true, // includes remote images (`true` by default) |
|
236 | 236 | //'account' => 'xxxx', // provider account |
237 | 237 | // Cloudinary |
238 | 238 | //'url' => 'https://res.cloudinary.com/%account%/image/fetch/c_limit,w_%width%,q_%quality%,f_%format%,d_default/%image_url%', |
@@ -251,14 +251,14 @@ discard block |
||
251 | 251 | 'internal' => [ |
252 | 252 | 'dir' => 'resources/layouts', // internal templates directory |
253 | 253 | ], |
254 | - 'translations' => [ // i18n |
|
254 | + 'translations' => [// i18n |
|
255 | 255 | 'dir' => 'translations', // translations files directory (`translations` by default) |
256 | 256 | 'formats' => ['yaml', 'mo'], // translations supported formats (`yaml` and `mo`) |
257 | 257 | 'internal' => [ |
258 | 258 | 'dir' => 'resources/translations', // internal translations directory |
259 | 259 | ], |
260 | 260 | ], |
261 | - 'extensions' => [ // list of Twig extensions class |
|
261 | + 'extensions' => [// list of Twig extensions class |
|
262 | 262 | //'Name' => 'Cecil\Renderer\Extension\Class', |
263 | 263 | ], |
264 | 264 | ], |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | ], |
269 | 269 | 'output' => [ |
270 | 270 | 'dir' => '_site', // output directory (`_site` by default) |
271 | - 'formats' => [ // https://cecil.app/documentation/configuration/#formats |
|
271 | + 'formats' => [// https://cecil.app/documentation/configuration/#formats |
|
272 | 272 | // e.g.: blog/post-1/index.html |
273 | 273 | -1 => [ |
274 | 274 | 'name' => 'html', |
@@ -364,14 +364,14 @@ discard block |
||
364 | 364 | 'exclude' => ['redirect', 'paginated'], |
365 | 365 | ], |
366 | 366 | ], |
367 | - 'pagetypeformats' => [ // formats applied by page type |
|
367 | + 'pagetypeformats' => [// formats applied by page type |
|
368 | 368 | 'page' => ['html'], |
369 | 369 | 'homepage' => ['html', 'atom'], |
370 | 370 | 'section' => ['html', 'atom'], |
371 | 371 | 'vocabulary' => ['html'], |
372 | 372 | 'term' => ['html', 'atom'], |
373 | 373 | ], |
374 | - 'postprocessors' => [ // list of output post processors class |
|
374 | + 'postprocessors' => [// list of output post processors class |
|
375 | 375 | 'GeneratorMetaTag' => 'Cecil\Renderer\PostProcessor\GeneratorMetaTag', |
376 | 376 | 'HtmlExcerpt' => 'Cecil\Renderer\PostProcessor\HtmlExcerpt', |
377 | 377 | 'MarkdownLink' => 'Cecil\Renderer\PostProcessor\MarkdownLink', |