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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -2,7 +2,7 @@
<div class="slideme"> <div class="slideme">
{% for slide in page.header.slides %} {% 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 %}> <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> <h2>{{ slide.subheading }}</h2>
<a class="button" href="{{ slide.button_url }}">{{ slide.button_text }}</a> <a class="button" href="{{ slide.button_url }}">{{ slide.button_text }}</a>
</div> </div>
@ -10,7 +10,7 @@
</div> </div>
</div> </div>
{{ content }} {{ content|raw }}
<script type="text/javascript"> <script type="text/javascript">
$('#content-slide').slideme({ $('#content-slide').slideme({

View file

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

View file

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

View file

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

View file

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

View file

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