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 committed by Stéphane Goetz
parent 6b6a010261
commit ac4bb09d45

View File

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