Passed
Push — image-dpi ( 6cd76c...59a838 )
by Arnaud
08:10 queued 04:38
created
config/default.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     'metatags' => [
66 66
         'robots' => 'index,follow', // SEO robots default directive
67 67
     ],
68
-    'pages' => [ // Markdown content management
68
+    'pages' => [// Markdown content management
69 69
         'dir' => 'pages', // pages files directory
70 70
         'ext' => ['md', 'markdown', 'mdown', 'mkdn', 'mkd', 'text', 'txt'], // supported files formats, by extension
71 71
         'exclude' => ['vendor', 'node_modules'], // directories, paths and files name to exclude (accepts globs, strings and regexes)
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
                 'caption' => false, // puts the image in a <figure> element and adds a <figcaption> containing the title
100 100
                 'placeholder' => '', // fill <img> background before loading (`color` or `lqip`)
101 101
                 'class' => '', // puts default CSS class(es) to each image
102
-                'remote' => [ // turns remote images into Assets to process them (disable with `false`)
102
+                'remote' => [// turns remote images into Assets to process them (disable with `false`)
103 103
                     'fallback' => '', // path to the fallback image, stored in assets directory (empty by default)
104 104
                 ],
105 105
             ],
106 106
             'links' => [
107
-                'embed' => [ // turns links in embedded content if possible
107
+                'embed' => [// turns links in embedded content if possible
108 108
                     'enabled' => false,
109 109
                     'video' => ['mp4', 'webm'], // supported video file types, by extension
110 110
                     'audio' => ['mp3', 'ogg', 'wav'], // supported audio file types, by extension
@@ -125,16 +125,16 @@  discard block
 block discarded – undo
125 125
         //    <position> => 'Cecil\Generator\<class>',
126 126
         //],
127 127
     ],
128
-    'data' => [ // data files
128
+    'data' => [// data files
129 129
         'dir' => 'data', // data files directory
130 130
         'ext' => ['yaml', 'yml', 'json', 'xml', 'csv'], // loaded files by extension
131 131
         'load' => true, // enables `site.data` collection
132 132
     ],
133
-    'assets' => [ // assets: CSS, JS, images, etc.
133
+    'assets' => [// assets: CSS, JS, images, etc.
134 134
         'dir' => 'assets', // assets files directory
135 135
         'target' => '', // where processed assets are saved (in output directory)
136 136
         'fingerprint' => true, // enables fingerprinting
137
-        'compile' => [ // Sass files compilation
137
+        'compile' => [// Sass files compilation
138 138
             'style' => 'expanded', // compilation style (`expanded` or `compressed`)
139 139
             'import' => ['sass', 'scss', 'node_modules'], // list of imported directories
140 140
             'sourcemap' => false, // enables sourcemap in debug mode
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         'images' => [
152 152
             'optimize' => false, // enables images optimization with JpegOptim, Optipng, Pngquant 2, SVGO 1, Gifsicle, cwebp, avifenc
153 153
             'quality' => 75, // image quality after optimization or resize
154
-            'responsive' => [ // options of generated responsive images
154
+            'responsive' => [// options of generated responsive images
155 155
                 'widths' => [480, 640, 768, 1024, 1366, 1600, 1920], // `srcset` widths
156 156
                 'sizes' => ['default' => '100vw'] // default `sizes` attribute
157 157
             ],
@@ -165,26 +165,26 @@  discard block
 block discarded – undo
165 165
             //]
166 166
         ],
167 167
     ],
168
-    'static' => [ // static files
168
+    'static' => [// static files
169 169
         'dir' => 'static', // static files directory
170 170
         'target' => '', // subdirectory where files are copied
171 171
         'exclude' => ['sass', 'scss', '*.scss', 'package*.json', 'node_modules'], // excluded files by extension or pattern
172 172
         'load' => false, // enables `site.static` collection
173 173
     ],
174
-    'layouts' => [ // layouts and templates
174
+    'layouts' => [// layouts and templates
175 175
         'dir' => 'layouts', // Twig templates directory
176
-        'images' => [ // how to handle images in templates
176
+        'images' => [// how to handle images in templates
177 177
             'formats' => [], // creates and adds formats images as `source` (e.g.: ['avif', 'webp'])
178 178
             'responsive' => false, // enables responsive images
179 179
             ],
180
-        'translations' => [ // i18n
180
+        'translations' => [// i18n
181 181
             'dir' => 'translations', // translations files directory
182 182
             'formats' => ['yaml', 'mo'], // translations supported formats
183 183
         ],
184
-        'extensions' => [ // list of Twig extensions class
184
+        'extensions' => [// list of Twig extensions class
185 185
             //'<name>' => 'Cecil\Renderer\Extension\<class>',
186 186
         ],
187
-        'components' => [ // components
187
+        'components' => [// components
188 188
             'dir' => 'components', // components directory
189 189
             'ext' => 'twig', // components files extension
190 190
         ],
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         //    '<section>' => '<layout>',
193 193
         //]
194 194
     ],
195
-    'output' => [ // output formats and post process
195
+    'output' => [// output formats and post process
196 196
         'dir' => '_site', // output directory
197 197
         //'formats' => [ // https://cecil.app/documentation/configuration/#formats
198 198
         //    [
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         //        'exclude' => ['variable1', 'variable2'],
204 204
         //    ],
205 205
         //],
206
-        'pagetypeformats' => [ // formats applied by page type
206
+        'pagetypeformats' => [// formats applied by page type
207 207
             'page' => ['html'],
208 208
             'homepage' => ['html', 'atom'],
209 209
             'section' => ['html', 'atom'],
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
         //    '<name>' => 'Cecil\Renderer\PostProcessor\<class>',
215 215
         //],
216 216
     ],
217
-    'cache' => [ // cache management
217
+    'cache' => [// cache management
218 218
         'enabled' => true, // disable with `false`
219 219
         'dir' => '.cache', // cache files root directory
220
-        'assets' => [ // assets cache
220
+        'assets' => [// assets cache
221 221
             'ttl' => null, // assets cache TTL (no expiration by default)
222 222
             'remote' => [
223 223
                 'ttl' => 604800, // remote assets cache TTL (7 days by default)
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         'templates' => true, // disable Twig templates cache with `false`
227 227
         'translations' => true, // disable translations dictionary cache with `false`
228 228
     ],
229
-    'optimize' => [ // files optimization
229
+    'optimize' => [// files optimization
230 230
         'enabled' => false, // enables files optimization
231 231
         'html' => [
232 232
             'enabled' => true, // enables HTML files optimization
Please login to merge, or discard this patch.