Passed
Push — components ( 8e253a )
by Arnaud
14:16
created
config/default.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         'max'  => 5, // number of pages by each paginated pages
55 55
         'path' => 'page', // path to paginated pages (e.g.: `/blog/page/2/`)
56 56
     ],
57
-    'pages' => [ // Markdown content management
57
+    'pages' => [// Markdown content management
58 58
         'dir'     => 'pages', // pages files directory
59 59
         'ext'     => ['md', 'markdown', 'mdown', 'mkdn', 'mkd', 'text', 'txt'], // supported files formats, by extension
60 60
         'exclude' => ['vendor', 'node_modules'], // directories, paths and files name to exclude (accepts globs, strings and regexes)
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
                 ],
113 113
                 'external' => [
114 114
                     'blank'      => false, // if true open external link in new tab
115
-                    'noopener'   => true,  // add "noopener" to `rel` attribute
116
-                    'noreferrer' => true,  // add "noreferrer" to `rel` attribute
117
-                    'nofollow'   => true,  // add "nofollow" to `rel` attribute
115
+                    'noopener'   => true, // add "noopener" to `rel` attribute
116
+                    'noreferrer' => true, // add "noreferrer" to `rel` attribute
117
+                    'nofollow'   => true, // add "nofollow" to `rel` attribute
118 118
                 ]
119 119
             ],
120 120
             'excerpt' => [
@@ -126,18 +126,18 @@  discard block
 block discarded – undo
126 126
         //    <position> => 'Cecil\Generator\<class>',
127 127
         //],
128 128
     ],
129
-    'data' => [ // data files
129
+    'data' => [// data files
130 130
         'dir'  => 'data', // data files directory
131 131
         'ext'  => ['yaml', 'yml', 'json', 'xml', 'csv'], // loaded files by extension
132 132
         'load' => true, // enables `site.data` collection
133 133
     ],
134
-    'static' => [ // static files
134
+    'static' => [// static files
135 135
         'dir'     => 'static', // static files directory
136 136
         'target'  => '', // subdirectory where files are copied
137 137
         'exclude' => ['sass', 'scss', '*.scss', 'package*.json', 'node_modules'], // excluded files by extension or pattern
138 138
         'load'    => false, // enables `site.static` collection
139 139
     ],
140
-    'assets' => [ // assets: CSS, JS, images, etc.
140
+    'assets' => [// assets: CSS, JS, images, etc.
141 141
         'dir'    => 'assets', // assets files directory
142 142
         'target' => 'assets', // where remote and resized assets are saved
143 143
         'fingerprint' => [
@@ -168,9 +168,9 @@  discard block
 block discarded – undo
168 168
             ],
169 169
             'formats' => [], // `html` filter: creates and adds formats images as `source` (ie "webp" and/or "avif")
170 170
             'cdn' => [
171
-                'enabled'   => false,  // enables Image CDN
172
-                'canonical' => true,   // is `image_url` must be canonical or not
173
-                'remote'    => true,   // includes remote images
171
+                'enabled'   => false, // enables Image CDN
172
+                'canonical' => true, // is `image_url` must be canonical or not
173
+                'remote'    => true, // includes remote images
174 174
                 //'account'   => 'xxxx', // provider account
175 175
                 // Cloudinary
176 176
                 //'url'       => 'https://res.cloudinary.com/%account%/image/fetch/c_limit,w_%width%,q_%quality%,f_%format%,d_default/%image_url%',
@@ -183,22 +183,22 @@  discard block
 block discarded – undo
183 183
             ]
184 184
         ],
185 185
     ],
186
-    'layouts' => [ // layouts and templates
186
+    'layouts' => [// layouts and templates
187 187
         'dir'      => 'layouts', // Twig templates directory
188 188
         'internal' => [
189 189
             'dir' => 'resources/layouts', // internal templates directory
190 190
         ],
191
-        'translations' => [ // i18n
191
+        'translations' => [// i18n
192 192
             'dir'      => 'translations', // translations files directory
193 193
             'formats'  => ['yaml', 'mo'], // translations supported formats
194 194
             'internal' => [
195 195
                 'dir' => 'resources/translations', // internal translations directory
196 196
             ],
197 197
         ],
198
-        'extensions' => [ // list of Twig extensions class
198
+        'extensions' => [// list of Twig extensions class
199 199
             //'<name>' => 'Cecil\Renderer\Extension\<class>',
200 200
         ],
201
-        'components' => [ // components
201
+        'components' => [// components
202 202
             'dir' => 'components', // components directory
203 203
         ],
204 204
     ],
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     'metatags' => [
209 209
         'robots' => 'index,follow', // SEO robots default directive
210 210
     ],
211
-    'output' => [ // output formats and post process
211
+    'output' => [// output formats and post process
212 212
         'dir'      => '_site', // output directory
213 213
         //'formats'  => [ // https://cecil.app/documentation/configuration/#formats
214 214
         //    [
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         //        'exclude'   => ['variable1', 'variable2'],
220 220
         //    ],
221 221
         //],
222
-        'pagetypeformats' => [ // formats applied by page type
222
+        'pagetypeformats' => [// formats applied by page type
223 223
             'page'       => ['html'],
224 224
             'homepage'   => ['html', 'atom'],
225 225
             'section'    => ['html', 'atom'],
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         //    '<name>' => 'Cecil\Renderer\PostProcessor\<class>',
231 231
         //],
232 232
     ],
233
-    'cache' => [ // cache management
233
+    'cache' => [// cache management
234 234
         'enabled'   => true, // enables cache support
235 235
         'dir'       => '.cache', // cache files directory
236 236
         'templates' => [
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             'dir'     => 'translations', // translations files cache directory
249 249
         ],
250 250
     ],
251
-    'optimize' => [ // files optimization
251
+    'optimize' => [// files optimization
252 252
         'enabled' => false, // enables files optimization
253 253
         'html'    => [
254 254
             'enabled' => true, // enables HTML files optimization
Please login to merge, or discard this patch.