Mark Pico's content Twig variable as being safe

This no longer requires themes to output the `content` variable using `{{ content|raw }}`, theme developers can use `{{ content }}` as before.
This commit is contained in:
Daniel Rudolf 2019-10-26 14:02:11 +02:00
parent 3480a520d9
commit e0415c8c1d
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -2141,7 +2141,7 @@ class Pico
'theme_url' => $this->getConfig('themes_url') . $this->getTheme(),
'site_title' => $this->getConfig('site_title'),
'meta' => $this->meta,
'content' => $this->content,
'content' => new Twig_Markup($this->content, 'UTF-8'),
'pages' => $this->pages,
'previous_page' => $this->previousPage,
'current_page' => $this->currentPage,