@@ -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 | ], |
@@ -115,9 +115,9 @@ discard block |
||
115 | 115 | ], |
116 | 116 | 'external' => [ |
117 | 117 | 'blank' => false, // if true open external link in new tab |
118 | - 'noopener' => true, // add "noopener" to `rel` attribute |
|
119 | - 'noreferrer' => true, // add "noreferrer" to `rel` attribute |
|
120 | - 'nofollow' => true, // add "nofollow" to `rel` attribute |
|
118 | + 'noopener' => true, // add "noopener" to `rel` attribute |
|
119 | + 'noreferrer' => true, // add "noreferrer" to `rel` attribute |
|
120 | + 'nofollow' => true, // add "nofollow" to `rel` attribute |
|
121 | 121 | ] |
122 | 122 | ], |
123 | 123 | 'excerpt' => [ |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | 'capture' => 'before', // part to capture, `before` or `after` the separator (`before` by default) |
126 | 126 | ], |
127 | 127 | ], |
128 | - 'generators' => [ // list of pages generators class, ordered by weight |
|
128 | + 'generators' => [// list of pages generators class, ordered by weight |
|
129 | 129 | 10 => 'Cecil\Generator\DefaultPages', |
130 | 130 | 20 => 'Cecil\Generator\VirtualPages', |
131 | 131 | 30 => 'Cecil\Generator\ExternalBody', |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | 80 => 'Cecil\Generator\Alias', |
137 | 137 | 90 => 'Cecil\Generator\Redirect', |
138 | 138 | ], |
139 | - 'default' => [ // default generated pages |
|
139 | + 'default' => [// default generated pages |
|
140 | 140 | 'index' => [ |
141 | 141 | 'path' => '', |
142 | 142 | 'title' => 'Home', |
@@ -237,9 +237,9 @@ discard block |
||
237 | 237 | 'enabled' => false, // `html` filter: creates and adds a WebP image as a `source` (`false` by default) |
238 | 238 | ], |
239 | 239 | 'cdn' => [ |
240 | - 'enabled' => false, // enables Image CDN (`false` by default) |
|
241 | - 'canonical' => true, // is `image_url` must be canonical or not (`true` by default) |
|
242 | - 'remote' => true, // includes remote images (`true` by default) |
|
240 | + 'enabled' => false, // enables Image CDN (`false` by default) |
|
241 | + 'canonical' => true, // is `image_url` must be canonical or not (`true` by default) |
|
242 | + 'remote' => true, // includes remote images (`true` by default) |
|
243 | 243 | //'account' => 'xxxx', // provider account |
244 | 244 | // Cloudinary |
245 | 245 | //'url' => 'https://res.cloudinary.com/%account%/image/fetch/c_limit,w_%width%,q_%quality%,f_%format%,d_default/%image_url%', |
@@ -258,14 +258,14 @@ discard block |
||
258 | 258 | 'internal' => [ |
259 | 259 | 'dir' => 'resources/layouts', // internal templates directory |
260 | 260 | ], |
261 | - 'translations' => [ // i18n |
|
261 | + 'translations' => [// i18n |
|
262 | 262 | 'dir' => 'translations', // translations files directory (`translations` by default) |
263 | 263 | 'formats' => ['yaml', 'mo'], // translations supported formats (`yaml` and `mo`) |
264 | 264 | 'internal' => [ |
265 | 265 | 'dir' => 'resources/translations', // internal translations directory |
266 | 266 | ], |
267 | 267 | ], |
268 | - 'extensions' => [ // list of Twig extensions class |
|
268 | + 'extensions' => [// list of Twig extensions class |
|
269 | 269 | //'Name' => 'Cecil\Renderer\Extension\Class', |
270 | 270 | ], |
271 | 271 | ], |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | ], |
276 | 276 | 'output' => [ |
277 | 277 | 'dir' => '_site', // output directory (`_site` by default) |
278 | - 'formats' => [ // https://cecil.app/documentation/configuration/#formats |
|
278 | + 'formats' => [// https://cecil.app/documentation/configuration/#formats |
|
279 | 279 | // e.g.: blog/post-1/index.html |
280 | 280 | -1 => [ |
281 | 281 | 'name' => 'html', |
@@ -371,14 +371,14 @@ discard block |
||
371 | 371 | 'exclude' => ['redirect', 'paginated'], |
372 | 372 | ], |
373 | 373 | ], |
374 | - 'pagetypeformats' => [ // formats applied by page type |
|
374 | + 'pagetypeformats' => [// formats applied by page type |
|
375 | 375 | 'page' => ['html'], |
376 | 376 | 'homepage' => ['html', 'atom'], |
377 | 377 | 'section' => ['html', 'atom'], |
378 | 378 | 'vocabulary' => ['html'], |
379 | 379 | 'term' => ['html', 'atom'], |
380 | 380 | ], |
381 | - 'postprocessors' => [ // list of output post processors class |
|
381 | + 'postprocessors' => [// list of output post processors class |
|
382 | 382 | 'GeneratorMetaTag' => 'Cecil\Renderer\PostProcessor\GeneratorMetaTag', |
383 | 383 | 'HtmlExcerpt' => 'Cecil\Renderer\PostProcessor\HtmlExcerpt', |
384 | 384 | 'MarkdownLink' => 'Cecil\Renderer\PostProcessor\MarkdownLink', |