Skip to content

Commit

Permalink
twig autoescape
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo118 committed Jan 16, 2021
1 parent 8dbcbe6 commit 2e6384a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/modular/text.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container">
{% set image = page.media.images|first %}
{% if image %}
{{ image.cropResize(400,400).html('','','align-'~page.header.image_align) }}
{{ image.cropResize(400,400).html('','','align-'~page.header.image_align)|raw }}
{% endif %}
{{ content|raw }}
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/partials/blog_item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
</span>
{% endif %}
{% if big_header %}
{{ page.media.images|first.cropResize(900,600).html('','blog-header-image') }}
{{ page.media.images|first.cropResize(900,600).html('','blog-header-image')|raw }}
{% else %}
{% if header_image %}
{% if header_image_file %}
{% set header_image_media = page.media.images[header_image_file] %}
{% else %}
{% set header_image_media = page.media.images|first %}
{% endif %}
{{ header_image_media.cropZoom(header_image_width, header_image_height).html }}
{{ header_image_media.cropZoom(header_image_width, header_image_height).html|raw }}
{% endif %}
{% endif %}
</div>
Expand Down

0 comments on commit 2e6384a

Please sign in to comment.