Fix TOC template rendering

TOC renderer only takes default template into account. 
Adding `theme::` fix it, it will use `theme` folder if there is one.
This commit is contained in:
Marie P-W 2018-09-21 12:34:34 +02:00 gecommit door Stéphane Goetz
bovenliggende 6b6a010261
commit ac4bb09d45

Bestand weergeven

@ -17,6 +17,6 @@ class Renderer implements BlockRendererInterface
$content = $htmlRenderer->renderBlocks($block->children());
return $this->config->templateRenderer
->getEngine($this->config)
->render('partials/table_of_contents', ['content' => $content]);
->render('theme::partials/table_of_contents', ['content' => $content]);
}
}