@@ -30,12 +30,12 @@ discard block |
||
| 30 | 30 | 'locale' => 'en_US', |
| 31 | 31 | ], |
| 32 | 32 | ], |
| 33 | - 'taxonomies' => [ // default taxonomies |
|
| 33 | + 'taxonomies' => [// default taxonomies |
|
| 34 | 34 | 'tags' => 'tag', // can be disabled with the special "disabled" value |
| 35 | 35 | 'categories' => 'category', |
| 36 | 36 | ], |
| 37 | 37 | 'pagination' => [ |
| 38 | - 'max' => 5, // number of pages by each paginated pages |
|
| 38 | + 'max' => 5, // number of pages by each paginated pages |
|
| 39 | 39 | 'path' => 'page', // path to paginated pages (e.g.: `/blog/page/2/`) |
| 40 | 40 | ], |
| 41 | 41 | 'pages' => [ |
@@ -46,17 +46,17 @@ discard block |
||
| 46 | 46 | 'format' => 'yaml', // front matter format: `yaml`, `ini`, `toml` or `json` (`yaml` by default) |
| 47 | 47 | ], |
| 48 | 48 | 'body' => [ |
| 49 | - 'format' => 'md', // page body format (only Markdown is supported) |
|
| 49 | + 'format' => 'md', // page body format (only Markdown is supported) |
|
| 50 | 50 | 'toc' => ['h2', 'h3'], // headers used to build the table of contents |
| 51 | 51 | 'highlight' => [ |
| 52 | - 'enabled' => false, // enables code syntax highlighting (`false` by default) |
|
| 52 | + 'enabled' => false, // enables code syntax highlighting (`false` by default) |
|
| 53 | 53 | ], |
| 54 | 54 | 'images' => [ |
| 55 | 55 | 'lazy' => [ |
| 56 | - 'enabled' => true, // adds `loading="lazy"` attribute (`true` by default) |
|
| 56 | + 'enabled' => true, // adds `loading="lazy"` attribute (`true` by default) |
|
| 57 | 57 | ], |
| 58 | 58 | 'decoding' => [ |
| 59 | - 'enabled' => true, // adds `decoding="async"` attribute (`true` by default) |
|
| 59 | + 'enabled' => true, // adds `decoding="async"` attribute (`true` by default) |
|
| 60 | 60 | ], |
| 61 | 61 | 'resize' => [ |
| 62 | 62 | 'enabled' => false, // enables image resizing by using the `width` extra attribute (`false` by default) |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | 'responsive' => [ |
| 68 | 68 | 'enabled' => false, // creates responsive images and adds them to the `srcset` attribute (`false` by default) |
| 69 | 69 | ], |
| 70 | - 'class' => '', // puts default CSS class to each image (empty by default) |
|
| 70 | + 'class' => '', // puts default CSS class to each image (empty by default) |
|
| 71 | 71 | 'caption' => [ |
| 72 | 72 | 'enabled' => false, // puts the image in a <figure> element and adds a <figcaption> containing the title (`false` by default) |
| 73 | 73 | ], |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | 'enabled' => true, // turns remote images to Asset to handling them (`true` by default) |
| 76 | 76 | 'fallback' => [ |
| 77 | 77 | 'enabled' => false, // enables a fallback if image is not found (`false` by default) |
| 78 | - 'path' => '', // path to the fallback image, stored in assets dir (empty by default) |
|
| 78 | + 'path' => '', // path to the fallback image, stored in assets dir (empty by default) |
|
| 79 | 79 | ], |
| 80 | 80 | ], |
| 81 | 81 | ], |
@@ -92,10 +92,10 @@ discard block |
||
| 92 | 92 | ], |
| 93 | 93 | 'excerpt' => [ |
| 94 | 94 | 'separator' => 'excerpt|break', // string to use as separator (`excerpt|break` by default) |
| 95 | - 'capture' => 'before', // part to capture, `before` or `after` the separator (`before` by default) |
|
| 95 | + 'capture' => 'before', // part to capture, `before` or `after` the separator (`before` by default) |
|
| 96 | 96 | ], |
| 97 | 97 | ], |
| 98 | - 'generators' => [ // list of pages generators, ordered by weight |
|
| 98 | + 'generators' => [// list of pages generators, ordered by weight |
|
| 99 | 99 | 10 => 'Cecil\Generator\DefaultPages', |
| 100 | 100 | 20 => 'Cecil\Generator\VirtualPages', |
| 101 | 101 | 30 => 'Cecil\Generator\ExternalBody', |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | 80 => 'Cecil\Generator\Alias', |
| 107 | 107 | 90 => 'Cecil\Generator\Redirect', |
| 108 | 108 | ], |
| 109 | - 'default' => [ // default generated pages |
|
| 109 | + 'default' => [// default generated pages |
|
| 110 | 110 | 'index' => [ |
| 111 | 111 | 'path' => '', |
| 112 | 112 | 'title' => 'Home', |
@@ -207,9 +207,9 @@ discard block |
||
| 207 | 207 | 'enabled' => false, // `html` filter: creates and adds a WebP image as a `source` (`false` by default) |
| 208 | 208 | ], |
| 209 | 209 | 'cdn' => [ |
| 210 | - 'enabled' => false, // enables Image CDN (`false` by default) |
|
| 211 | - 'canonical' => true, // is `image_url` must be canonical or not (`true` by default) |
|
| 212 | - 'remote' => true, // includes remote images (`true` by default) |
|
| 210 | + 'enabled' => false, // enables Image CDN (`false` by default) |
|
| 211 | + 'canonical' => true, // is `image_url` must be canonical or not (`true` by default) |
|
| 212 | + 'remote' => true, // includes remote images (`true` by default) |
|
| 213 | 213 | //'account' => 'xxxx', // provider account |
| 214 | 214 | // Cloudinary |
| 215 | 215 | //'url' => 'https://res.cloudinary.com/%account%/image/fetch/c_limit,w_%width%,q_%quality%,f_%format%,d_default/%image_url%', |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | 'dir' => 'resources/layouts', // internal templates directory |
| 230 | 230 | ], |
| 231 | 231 | 'extensions' => [], // Twig extensions |
| 232 | - 'translations' => [ // i18n |
|
| 232 | + 'translations' => [// i18n |
|
| 233 | 233 | 'dir' => 'translations', // translations files directory (`translations` by default) |
| 234 | 234 | 'formats' => ['yaml', 'mo'], // translations supported formats (`yaml` and `mo`) |
| 235 | 235 | 'internal' => [ |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | ], |
| 244 | 244 | 'output' => [ |
| 245 | 245 | 'dir' => '_site', // output directory (`_site` by default) |
| 246 | - 'formats' => [ // https://cecil.app/documentation/configuration/#formats |
|
| 246 | + 'formats' => [// https://cecil.app/documentation/configuration/#formats |
|
| 247 | 247 | // e.g.: blog/post-1/index.html |
| 248 | 248 | -1 => [ |
| 249 | 249 | 'name' => 'html', |
@@ -323,14 +323,14 @@ discard block |
||
| 323 | 323 | 'exclude' => ['redirect', 'paginated'], |
| 324 | 324 | ], |
| 325 | 325 | ], |
| 326 | - 'pagetypeformats' => [ // formats applied by page type |
|
| 326 | + 'pagetypeformats' => [// formats applied by page type |
|
| 327 | 327 | 'page' => ['html'], |
| 328 | 328 | 'homepage' => ['html', 'atom'], |
| 329 | 329 | 'section' => ['html', 'atom'], |
| 330 | 330 | 'vocabulary' => ['html'], |
| 331 | 331 | 'term' => ['html', 'atom'], |
| 332 | 332 | ], |
| 333 | - 'postprocessors' => [ // list of output post processors |
|
| 333 | + 'postprocessors' => [// list of output post processors |
|
| 334 | 334 | -1 => 'Cecil\Renderer\PostProcessor\GeneratorMetaTag', |
| 335 | 335 | -2 => 'Cecil\Renderer\PostProcessor\HtmlExcerpt', |
| 336 | 336 | -3 => 'Cecil\Renderer\PostProcessor\MarkdownLink', |