Skip to content

Commit 1c0d001

Browse files
authored
Update Sitemap.php
1 parent e5974b8 commit 1c0d001

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Component/Sitemap.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ protected function beforeRender() : void
4444
$this->template->pages = $this->cache->call([$this, 'getPages']);
4545
$this->template->date = new \Nette\Utils\DateTime();
4646
}
47+
48+
public function render() : void
49+
{
50+
$this->beforeRender();
51+
$this->template->setFile(__DIR__ . '/Sitemap.latte');
52+
$this->template->render();
53+
}
4754

4855
public function getPages() : array
4956
{

0 commit comments

Comments
 (0)