| @@ -141,8 +141,8 @@ | ||
| 141 | 141 | case PageType::TERM: | 
| 142 | 142 | $layouts = [ | 
| 143 | 143 | // "taxonomy/$term.$format.$ext", // ie: taxonomy/velo.html.twig | 
| 144 | - "_default/term.$format.$ext", // ie: _default/term.html.twig | |
| 145 | - "_default/list.$format.$ext", // ie: _default/list.html.twig | |
| 144 | + "_default/term.$format.$ext", // ie: _default/term.html.twig | |
| 145 | + "_default/list.$format.$ext", // ie: _default/list.html.twig | |
| 146 | 146 | ]; | 
| 147 | 147 |                  if ($page->hasVariable('term')) { | 
| 148 | 148 | $layouts = array_merge( | 
| @@ -132,7 +132,7 @@ | ||
| 132 | 132 | $this->options = array_merge([ | 
| 133 | 133 | 'drafts' => false, // build drafts or not | 
| 134 | 134 | 'dry-run' => false, // if dry-run is true, generated files are not saved | 
| 135 | - 'page' => '', // specific page to build | |
| 135 | + 'page' => '', // specific page to build | |
| 136 | 136 | ], $options); | 
| 137 | 137 | |
| 138 | 138 | // process each step | 
| @@ -61,8 +61,8 @@ | ||
| 61 | 61 | |
| 62 | 62 | // handles options | 
| 63 | 63 | $canonical = null; // if true, add prefix URL with baseurl | 
| 64 | - $format = null; // set output format | |
| 65 | - $language = null; // force language | |
| 64 | + $format = null; // set output format | |
| 65 | + $language = null; // force language | |
| 66 | 66 | extract(is_array($options) ? $options : [], EXTR_IF_EXISTS); | 
| 67 | 67 | |
| 68 | 68 | // canonical URL? | 
| @@ -16,14 +16,14 @@ discard block | ||
| 16 | 16 | 'title' => 'Site title', | 
| 17 | 17 | //'baseline' => 'Site baseline', | 
| 18 | 18 | 'baseurl' => 'http://localhost:8000/', | 
| 19 | - 'canonicalurl' => false, // if true 'url()' function preprends URL wirh 'baseurl' | |
| 19 | + 'canonicalurl' => false, // if true 'url()' function preprends URL wirh 'baseurl' | |
| 20 | 20 | 'description' => 'Site description', | 
| 21 | - 'taxonomies' => [ // default taxonomies | |
| 21 | + 'taxonomies' => [// default taxonomies | |
| 22 | 22 | 'tags' => 'tag', // can be disabled with 'disabled' value | 
| 23 | 23 | 'categories' => 'category', | 
| 24 | 24 | ], | 
| 25 | 25 | 'pagination' => [ | 
| 26 | - 'max' => 5, // number of pages on each paginated pages | |
| 26 | + 'max' => 5, // number of pages on each paginated pages | |
| 27 | 27 | 'path' => 'page', // path to paginated pages. ie: '/blog/page/2/' | 
| 28 | 28 | ], | 
| 29 | 29 | 'date' => [ | 
| @@ -181,14 +181,14 @@ discard block | ||
| 181 | 181 | 'format' => 'yaml', // front matter format `yaml`, `ini`, `toml` or `json` (`yaml` by default) | 
| 182 | 182 | ], | 
| 183 | 183 | 'body' => [ | 
| 184 | - 'format' => 'md', // page body format (only Markdown is supported) | |
| 184 | + 'format' => 'md', // page body format (only Markdown is supported) | |
| 185 | 185 | 'toc' => ['h2', 'h3'], // headers used to build the table of contents | 
| 186 | 186 | 'highlight' => [ | 
| 187 | - 'enabled' => false, // enables code syntax highlighting (`false` by default) | |
| 187 | + 'enabled' => false, // enables code syntax highlighting (`false` by default) | |
| 188 | 188 | ], | 
| 189 | 189 | 'images' => [ | 
| 190 | 190 | 'lazy' => [ | 
| 191 | - 'enabled' => true, // adds `loading="lazy"` attribute (`true` by default) | |
| 191 | + 'enabled' => true, // adds `loading="lazy"` attribute (`true` by default) | |
| 192 | 192 | ], | 
| 193 | 193 | 'resize' => [ | 
| 194 | 194 | 'enabled' => false, // enables image resizing by using the `width` extra attribute (`false` by default) | 
| @@ -203,10 +203,10 @@ discard block | ||
| 203 | 203 | 'enabled' => false, // puts the image in a <figure> element and adds a <figcaption> containing the title (`false` by default) | 
| 204 | 204 | ], | 
| 205 | 205 | 'remote' => [ | 
| 206 | - 'enabled' => true, // turns remote images to Asset to handling them (`true` by default) | |
| 206 | + 'enabled' => true, // turns remote images to Asset to handling them (`true` by default) | |
| 207 | 207 | 'fallback' => [ | 
| 208 | 208 | 'enabled' => false, // enables a fallback if image is not found (`false` by default) | 
| 209 | - 'path' => '', // path to the fallback image, stored in assets dir (`` by default) | |
| 209 | + 'path' => '', // path to the fallback image, stored in assets dir (`` by default) | |
| 210 | 210 | ], | 
| 211 | 211 | ], | 
| 212 | 212 | 'class' => '', // put default class to each image (`` by default) | 
| @@ -218,7 +218,7 @@ discard block | ||
| 218 | 218 | ], | 
| 219 | 219 | 'excerpt' => [ | 
| 220 | 220 | 'separator' => 'excerpt|break', // string to use as separator (`excerpt|break` by default) | 
| 221 | - 'capture' => 'before', // part to capture, `before` or `after` the separator (`before` by default) | |
| 221 | + 'capture' => 'before', // part to capture, `before` or `after` the separator (`before` by default) | |
| 222 | 222 | ], | 
| 223 | 223 | ], | 
| 224 | 224 | // data files | 
| @@ -254,17 +254,17 @@ discard block | ||
| 254 | 254 | ], | 
| 255 | 255 | 'assets' => [ | 
| 256 | 256 | 'dir' => 'assets', | 
| 257 | - 'compile' => [ // Compile Saas | |
| 257 | + 'compile' => [// Compile Saas | |
| 258 | 258 | 'enabled' => true, | 
| 259 | 259 | 'style' => 'expanded', // 'expanded' or 'compressed', | 
| 260 | 260 | 'import' => ['sass', 'scss', 'node_modules'], | 
| 261 | 261 | 'sourcemap' => false, // works in debug mode only | 
| 262 | 262 | //'variables' => ['var' => 'value'] | 
| 263 | 263 | ], | 
| 264 | - 'minify' => [ // Minify CSS and JS | |
| 264 | + 'minify' => [// Minify CSS and JS | |
| 265 | 265 | 'enabled' => true, | 
| 266 | 266 | ], | 
| 267 | - 'fingerprint' => [ // Add fingerprint | |
| 267 | + 'fingerprint' => [// Add fingerprint | |
| 268 | 268 | 'enabled' => true, | 
| 269 | 269 | ], | 
| 270 | 270 | 'target' => 'assets', // target directory of remote and resized assets | 
| @@ -74,20 +74,20 @@ | ||
| 74 | 74 | } | 
| 75 | 75 | }); | 
| 76 | 76 | $this->data = [ | 
| 77 | - 'file' => '', // absolute file path | |
| 78 | - 'files' => [], // bundle: files path | |
| 79 | - 'filename' => '', // filename | |
| 80 | - 'path_source' => '', // public path to the file, before transformations | |
| 81 | - 'path' => '', // public path to the file, after transformations | |
| 77 | + 'file' => '', // absolute file path | |
| 78 | + 'files' => [], // bundle: files path | |
| 79 | + 'filename' => '', // filename | |
| 80 | + 'path_source' => '', // public path to the file, before transformations | |
| 81 | + 'path' => '', // public path to the file, after transformations | |
| 82 | 82 | 'missing' => false, // if file not found, but missing ollowed 'missing' is true | 
| 83 | - 'ext' => '', // file extension | |
| 84 | - 'type' => '', // file type (e.g.: image, audio, video, etc.) | |
| 85 | - 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) | |
| 86 | - 'size' => 0, // file size (in bytes) | |
| 87 | - 'content_source' => '', // file content, before transformations | |
| 88 | - 'content' => '', // file content, after transformations | |
| 89 | - 'width' => 0, // width (in pixels) in case of an image | |
| 90 | - 'height' => 0, // height (in pixels) in case of an image | |
| 83 | + 'ext' => '', // file extension | |
| 84 | + 'type' => '', // file type (e.g.: image, audio, video, etc.) | |
| 85 | + 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) | |
| 86 | + 'size' => 0, // file size (in bytes) | |
| 87 | + 'content_source' => '', // file content, before transformations | |
| 88 | + 'content' => '', // file content, after transformations | |
| 89 | + 'width' => 0, // width (in pixels) in case of an image | |
| 90 | + 'height' => 0, // height (in pixels) in case of an image | |
| 91 | 91 | ]; | 
| 92 | 92 | |
| 93 | 93 | // handles options |