Merge branch 'release/1.7.1'

This commit is contained in:
Andy Miller 2021-01-15 11:47:01 -07:00
commit 1dc1e356f4
No known key found for this signature in database
GPG key ID: 2B07A47E470BCFDE
19 changed files with 47 additions and 39 deletions

View file

@ -1,3 +1,9 @@
# v1.7.1
## 01/15/2021
1. [](#improved)
* Fixed autoescaping in preparation for Grav 1.7
# v1.7.0 # v1.7.0
## 03/21/2019 ## 03/21/2019

View file

@ -1,5 +1,7 @@
name: Deliver name: Deliver
version: 1.7.0 slug: deliver
type: theme
version: 1.7.1
description: "Deliver theme is a port of the Michael Reimer's Deliver Free PSD theme." description: "Deliver theme is a port of the Michael Reimer's Deliver Free PSD theme."
icon: newspaper-o icon: newspaper-o
author: author:

View file

@ -10,7 +10,7 @@
{% if base_url == base_url_relative %} {% if base_url == base_url_relative %}
{% set feed_url = base_url~'/'~page.slug %} {% set feed_url = base_url~'/'~page.slug %}
{% endif %} {% endif %}
{% block content %} {% block content %}
{% set blog_image = page.media.images|first %} {% set blog_image = page.media.images|first %}
{% if blog_image %} {% if blog_image %}
@ -18,15 +18,15 @@
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
</div> </div>
{% endif %} {% endif %}
<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'} %}
{% endif %} {% endif %}
{% if config.plugins.archives.enabled %} {% if config.plugins.archives.enabled %}
<h4>Archives by month</h4> <h4>Archives by month</h4>
{% include 'partials/archives.html.twig' %} {% include 'partials/archives.html.twig' %}

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

@ -30,7 +30,7 @@
{% block header_navigation %} {% block header_navigation %}
{% if show_onpage_menu %} {% if show_onpage_menu %}
<ul class="navigation"> <ul class="navigation">
{% macro loop(page) %} {% macro loop(page) %}
{% for p in page.children %} {% for p in page.children %}
{% if p.visible %} {% if p.visible %}
@ -74,7 +74,7 @@
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
{% for module in page.collection() %} {% for module in page.collection() %}
{% set current_module = (module.active or module.activeChild) ? 'active' : '' %} {% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
<li class="{{ current_module }}"><a href="#{{ _self.pageLinkName(module.menu) }}">{{ module.menu }}</a></li> <li class="{{ current_module }}"><a href="#{{ _self.pageLinkName(module.menu) }}">{{ module.menu }}</a></li>
@ -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 %}
@ -13,8 +13,8 @@
<i class="fa fa-{{ service.icon }}"></i> <i class="fa fa-{{ service.icon }}"></i>
<h4>{{ service.title }}</h4> <h4>{{ service.title }}</h4>
<p>{{ service.desc }}</p> <p>{{ service.desc }}</p>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
</div> </div>

View file

@ -1,4 +1,4 @@
<div class="modular-row contact {{ page.header.class }}"> <div class="modular-row contact {{ page.header.class }}">
<div class="g-grid pure-g-r"> <div class="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">
{% if config.plugins.simple_form.enabled %} {% if config.plugins.simple_form.enabled %}
@ -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 }}
@ -16,7 +16,7 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
{% if page.header.portfolio %} {% if page.header.portfolio %}
<div class="notebooks"> <div class="notebooks">
@ -67,4 +67,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endfor %} {% endfor %}

View file

@ -56,7 +56,7 @@
<a href="{{ page.url }}" class="external"> <a href="{{ page.url }}" class="external">
{% if page.header.icon %}<i class="fa fa-{{ page.header.icon }}"></i>{% endif %} {% if page.header.icon %}<i class="fa fa-{{ page.header.icon }}"></i>{% endif %}
{{ page.menu }} {{ page.menu }}
</a> </a>
</li> </li>
{% endif %} {% endif %}
@ -70,7 +70,7 @@
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
{% for module in page.collection() %} {% for module in page.collection() %}
{% set current_module = (module.active or module.activeChild) ? 'active' : '' %} {% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
<li class="{{ current_module }}"><a href="#{{ _self.pageLinkName(module.menu) }}">{{ module.menu }}</a></li> <li class="{{ current_module }}"><a href="#{{ _self.pageLinkName(module.menu) }}">{{ module.menu }}</a></li>
@ -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() %}