twig autoescape

This commit is contained in:
Ricardo 2020-12-13 00:32:27 +00:00
parent 4541c9a05b
commit 72e3e41678
17 changed files with 38 additions and 38 deletions

View file

@ -21,7 +21,7 @@
<div class="content-wrapper archive-list g-grid pure-g-r">
<div id="listing" class="g-block pure-u-2-3">
{{ page.content }}
{{ page.content|raw }}
{% if config.plugins.taxonomylist.enabled %}
<h4>Archives by tags</h4>
{% include 'partials/taxonomylist.html.twig' with {'taxonomy':'tag'} %}

View file

@ -20,7 +20,7 @@
{% else %}
<div class="blog-header">
{% endif %}
{{ page.content }}
{{ page.content|raw }}
</div>
{% if config.plugins.breadcrumbs.enabled %}

View file

@ -1,5 +1,5 @@
{% extends 'partials/base.html.twig' %}
{% block content %}
<p>{{ page.content }}</p>
<p>{{ page.content|raw }}</p>
{% endblock %}

View file

@ -5,7 +5,7 @@
<div>
<h1>Error {{ page.header.http_response_code }}</h1>
<p>
{{ page.content }}
{{ page.content|raw }}
</p>
</div>
</div>

View file

@ -2,7 +2,7 @@
{% block content %}
<div class="modular-row bottom ">
{{ content }}
{{ content|raw }}
<h2>{{ form.message }}</h2>
<p>Here is the summary of what you wrote to us:</p>

View file

@ -86,9 +86,9 @@
{% endblock %}
{% block content %}
{{ page.content }}
{{ page.content|raw }}
{% for module in page.collection() %}
<div id="{{ _self.pageLinkName(module.menu) }}"></div>
{{ module.content }}
{{ module.content|raw }}
{% endfor %}
{% endblock %}

View file

@ -1,5 +1,5 @@
<div class="modular-row bottom {{ page.header.class }}">
{{ content }}
{{ content|raw }}
{% for button in page.header.buttons %}
<a class="button{% if button.primary %} primary{% endif %}" href="{{ button.url }}">{{ button.text }}</a>
{% endfor %}

View file

@ -7,7 +7,7 @@
{% endif %}
</div>
<div id="sidebar" class="g-block size-1-3 pure-u-1-3">
{{ content }}
{{ content|raw }}
</div>
</div>
</div>

View file

@ -1,5 +1,5 @@
<div class="modular-row features {{ page.header.class}}">
{{ content }}
{{ content|raw }}
{% for button in page.header.buttons %}
<a class="button{% if button.primary %} primary{% endif %}" href="{{ button.url }}">{{ button.text }}</a>
{% endfor %}

View file

@ -4,7 +4,7 @@
{% include "forms/form.html.twig" %}
</div>
<div id="sidebar" class="g-block size-1-3 pure-u-1-3">
{{ page.content }}
{{ page.content|raw }}
</div>
</div>
</div>

View file

@ -1,5 +1,5 @@
<div class="modular-row portfolio">
{{ content }}
{{ content|raw }}
{% if page.header.portfolio %}
<div class="notebooks">
{% for row in page.header.portfolio|batch(4) %}

View file

@ -2,7 +2,7 @@
<div class="slideme">
{% for slide in page.header.slides %}
<div class="modular-row showcase flush-top" {% if page.media[slide.image] %}style="background-image: url({{ page.media[slide.image].url }});"{% endif %}>
<h1>{{ slide.heading }}</h1>
<h1>{{ slide.heading|raw }}</h1>
<h2>{{ slide.subheading }}</h2>
<a class="button" href="{{ slide.button_url }}">{{ slide.button_text }}</a>
</div>
@ -10,7 +10,7 @@
</div>
</div>
{{ content }}
{{ content|raw }}
<script type="text/javascript">
$('#content-slide').slideme({

View file

@ -1,5 +1,5 @@
<div class="modular-row team">
{{ content }}
{{ content|raw }}
<div class="members">
{% for member in page.header.members %}
<div class="member">

View file

@ -1,11 +1,11 @@
<div class="modular-row callout">
{{ content }}
{{ content|raw }}
{% if page.header.pricing %}
<div class="pricing-container">
{% for item in page.header.pricing %}
<div class="pricing-item">
<div class="name">{{ item.name }}</div>
<div class="price">{{ item.price }}</div>
<div class="price">{{ item.price|raw }}</div>
{% for line in item.options %}
<div class="info">
{{ line.line }}

View file

@ -88,9 +88,9 @@
<h1>{{ page.title }}</h1>
</div>
{% endif %}
{{ page.content }}
{{ page.content|raw }}
{% for module in page.collection() %}
<div id="{{ _self.pageLinkName(module.menu) }}"></div>
{{ module.content }}
{{ module.content|raw }}
{% endfor %}
{% endblock %}

View file

@ -2,9 +2,9 @@
<div class="list-blog-header">
{% if big_header %}
{{ page.media.images|first.cropResize(900,600).html }}
{{ page.media.images|first.cropResize(900,600).html|raw }}
{% else %}
{{ page.media.images|first.cropZoom(900,300).html }}
{{ page.media.images|first.cropZoom(900,300).html|raw }}
{% endif %}
{% if page.header.link %}
@ -42,18 +42,18 @@
<div class="list-blog-padding">
{% if page.header.continue_link is sameas(false) %}
<p>{{ page.content }}</p>
<p>{{ page.content|raw }}</p>
{% if not truncate %}
{% set show_prev_next = true %}
{% endif %}
{% elseif truncate and page.summary != page.content %}
<p>{{ page.summary }}</p>
<p>{{ page.summary|raw }}</p>
<p><a href="{{ page.url }}">Continue Reading...</a></p>
{% elseif truncate %}
<p>{{ page.content|truncate(550) }}</p>
<p><a href="{{ page.url }}">Continue Reading...</a></p>
{% else %}
<p>{{ page.content }}</p>
<p>{{ page.content|raw }}</p>
{% set show_prev_next = true %}
{% endif %}

View file

@ -6,7 +6,7 @@
{{ parent() }}
<div class="content-wrapper">
{{ page.content }}
{{ page.content|raw }}
<div class="snipcart-categories">
{% for child in page.collection() %}