diff --git a/CHANGELOG.md b/CHANGELOG.md index ab6e0f0..49cb29e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#improved) * User return typehints in plugin.php + * Add proper twig escapes into a new theme # v1.4.1 ## 05/20/2020 diff --git a/components/theme/pure-blank/templates/default.html.twig b/components/theme/pure-blank/templates/default.html.twig index 4dd67b6..1e97738 100644 --- a/components/theme/pure-blank/templates/default.html.twig +++ b/components/theme/pure-blank/templates/default.html.twig @@ -1,5 +1,5 @@ {% extends 'partials/base.html.twig' %} {% block content %} - {{ page.content }} + {{ page.content|raw }} {% endblock %} diff --git a/components/theme/pure-blank/templates/error.html.twig b/components/theme/pure-blank/templates/error.html.twig index f23aa78..c945464 100644 --- a/components/theme/pure-blank/templates/error.html.twig +++ b/components/theme/pure-blank/templates/error.html.twig @@ -3,6 +3,6 @@ {% block content %}

Error!

- {{ page.content }} + {{ page.content|raw }}
{% endblock %} diff --git a/components/theme/pure-blank/templates/partials/base.html.twig b/components/theme/pure-blank/templates/partials/base.html.twig index f7d9ee3..d31a436 100644 --- a/components/theme/pure-blank/templates/partials/base.html.twig +++ b/components/theme/pure-blank/templates/partials/base.html.twig @@ -1,17 +1,17 @@ {% set theme_config = attribute(config.themes, config.system.pages.theme) %} - + {% block head %} - {% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }} + {% if header.title %}{{ header.title|e }} | {% endif %}{{ site.title|e }} {% include 'partials/metadata.html.twig' %} - - + + {% endblock head %} {% block stylesheets %} @@ -29,14 +29,14 @@ {{ assets.js()|raw }} {% endblock %} - + {% block header %}
- {% block header_navigation %}