@@ -13,14 +13,14 @@ |
||
13 | 13 | 'title' => 'My Website', |
14 | 14 | 'baseline' => 'My amazing static website!', |
15 | 15 | 'baseurl' => 'http://localhost:8000/', |
16 | - 'canonicalurl' => false, // if true 'url()' function preprends URL wirh 'baseurl' |
|
16 | + 'canonicalurl' => false, // if true 'url()' function preprends URL wirh 'baseurl' |
|
17 | 17 | 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', |
18 | - 'taxonomies' => [ // default taxonomies |
|
18 | + 'taxonomies' => [// default taxonomies |
|
19 | 19 | 'tags' => 'tag', // can be disabled with 'disabled' value |
20 | 20 | 'categories' => 'category', |
21 | 21 | ], |
22 | 22 | 'pagination' => [ |
23 | - 'max' => 5, // number of pages on each paginated pages |
|
23 | + 'max' => 5, // number of pages on each paginated pages |
|
24 | 24 | 'path' => 'page', // path to paginated pages. ie: '/blog/page/2/' |
25 | 25 | ], |
26 | 26 | 'date' => [ |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | call_user_func_array($this->builder->getMessageCb(), ['GENERATE', 'Generating pages']); |
37 | 37 | |
38 | 38 | // load local generators |
39 | - spl_autoload_register(function ($className) { |
|
39 | + spl_autoload_register(function($className) { |
|
40 | 40 | $generatorFile = $this->config->getDestinationDir().'/generators/'.$className.'.php'; |
41 | 41 | if (file_exists($generatorFile)) { |
42 | 42 | require $generatorFile; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | }); |
45 | 45 | |
46 | 46 | $generators = (array) $this->builder->getConfig()->get('generators'); |
47 | - array_walk($generators, function ($generator, $priority) use ($generatorManager) { |
|
47 | + array_walk($generators, function($generator, $priority) use ($generatorManager) { |
|
48 | 48 | if (!class_exists($generator)) { |
49 | 49 | $message = sprintf('Unable to load generator "%s"', $generator); |
50 | 50 | call_user_func_array($this->builder->getMessageCb(), ['GENERATE_ERROR', $message]); |