forked from projects/fipamo
Fix for #94
Header images were missing from the archive and tags pages, so this is a patch to make sure those are working again.
This commit is contained in:
parent
181225329a
commit
fa4b252d9c
2 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,7 @@ class SettingsAPI
|
||||||
} else {
|
} else {
|
||||||
$render = new Render();
|
$render = new Render();
|
||||||
if (isset($themeConfig['render'])) {
|
if (isset($themeConfig['render'])) {
|
||||||
|
//rendering for one page sites
|
||||||
if (!$themeConfig['render'] || $themeConfig['render'] === 'false') {
|
if (!$themeConfig['render'] || $themeConfig['render'] === 'false') {
|
||||||
$render->renderIndex();
|
$render->renderIndex();
|
||||||
$result = [
|
$result = [
|
||||||
|
|
|
@ -136,6 +136,7 @@ class Render
|
||||||
'archives' => $archive,
|
'archives' => $archive,
|
||||||
'info' => $this->pageInfo,
|
'info' => $this->pageInfo,
|
||||||
'menu' => $this->menu,
|
'menu' => $this->menu,
|
||||||
|
'media' => [['file' => $this->pageInfo['image'], 'type' => trim(pathinfo($this->pageInfo['image'], PATHINFO_EXTENSION))]],
|
||||||
];
|
];
|
||||||
|
|
||||||
$html = $this->twig->render($template, $pageOptions);
|
$html = $this->twig->render($template, $pageOptions);
|
||||||
|
@ -154,6 +155,7 @@ class Render
|
||||||
'tag_list' => $item['pages'],
|
'tag_list' => $item['pages'],
|
||||||
'info' => $this->pageInfo,
|
'info' => $this->pageInfo,
|
||||||
'menu' => $this->menu,
|
'menu' => $this->menu,
|
||||||
|
'media' => [['file' => $this->pageInfo['image'], 'type' => trim(pathinfo($this->pageInfo['image'], PATHINFO_EXTENSION))]],
|
||||||
];
|
];
|
||||||
|
|
||||||
$html = $this->twig->render($template, $pageOptions);
|
$html = $this->twig->render($template, $pageOptions);
|
||||||
|
|
Loading…
Reference in a new issue