@@ -90,7 +90,7 @@ |
||
90 | 90 | */ |
91 | 91 | public function getPages() |
92 | 92 | { |
93 | - return $this->builder->getPages()->filter(function (Page $page) { |
|
93 | + return $this->builder->getPages()->filter(function(Page $page) { |
|
94 | 94 | return $page->getVariable('published'); |
95 | 95 | }); |
96 | 96 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | // https://regex101.com/r/dZ02zO/4 |
93 | 93 | $this->rendered = preg_replace_callback( |
94 | 94 | '/href="\/([A-Za-z0-9_\.\-\/]+)\.md"/is', |
95 | - function ($matches) { |
|
95 | + function($matches) { |
|
96 | 96 | return 'href="/'.Page::slugify(sprintf('%s', $matches[1])).'"'; |
97 | 97 | }, |
98 | 98 | $this->rendered |