add templateimg

This commit is contained in:
2018-07-26 08:20:55 +02:00
parent 89b9500179
commit 21d6860753
140 changed files with 6142 additions and 492 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ class Media extends AbstractMedia
/** @var \DirectoryIterator $info */
foreach ($iterator as $path => $info) {
// Ignore folders and Markdown files.
if (!$info->isFile() || $info->getExtension() === 'md' || $info->getBasename()[0] === '.') {
if (!$info->isFile() || $info->getExtension() === 'md' || $info->getFilename()[0] === '.') {
continue;
}
+1 -1
View File
@@ -1790,7 +1790,7 @@ class Page
public function routeCanonical($var = null)
{
if ($var !== null) {
$this->routes['canonical'] = (array)$var;
$this->routes['canonical'] = $var;
}
if (!empty($this->routes) && isset($this->routes['canonical'])) {
+1 -1
View File
@@ -1041,7 +1041,7 @@ class Pages
}
// Ignore all files in ignore list.
if (\in_array($file->getBasename(), $this->ignore_files, true)) {
if (\in_array($filename, $this->ignore_files, true)) {
continue;
}