updated grav to 1.7.14

This commit is contained in:
2021-05-12 10:33:19 +02:00
parent 3d5bc71a7c
commit bd4137e00d
553 changed files with 53214 additions and 18091 deletions
+4
View File
@@ -0,0 +1,4 @@
{# Default output if no theme #}
<h3 style="color:red">ERROR: <code>{{ page.template() ~'.'~ page.templateFormat() ~".twig" }}</code> template not found for page: <code>{{ page.route() }}</code></h3>
<h1>{{ page.title() }}</h1>
{{ page.content()|raw }}
+1
View File
@@ -0,0 +1 @@
{# Default external template #}
+4
View File
@@ -0,0 +1,4 @@
{% set item = collection ?? object %}
{% set type = collection ? 'collection' : 'object' %}
ERROR: Layout '{{ layout }}' for flex {{ type }} '{{ item.flexType() }}' was not found.
@@ -0,0 +1,5 @@
<h1>{{ directory.getTitle() }} <small>debug dump</small></h1>
{% for object in collection %}
{% render object layout: layout %}
{% endfor %}
@@ -0,0 +1,4 @@
<section>
<h2>{{ object.key }}</h2>
<pre>{{ object.jsonSerialize()|yaml_encode }}</pre>
</section>
@@ -0,0 +1,4 @@
{# Default output if no theme #}
<h3 style="color:red">ERROR: <code>{{ page.template() ~'.'~ page.templateFormat() ~".twig" }}</code> template not found for page: <code>{{ page.route() }}</code></h3>
<h1>{{ page.title() }}</h1>
{{ page.content()|raw }}
+2 -2
View File
@@ -1,3 +1,3 @@
{% for meta in page.metadata %}
<meta {% if meta.name %}name="{{ meta.name }}" {% endif %}{% if meta.http_equiv %}http-equiv="{{ meta.http_equiv }}" {% endif %}{% if meta.charset %}charset="{{ meta.charset }}" {% endif %}{% if meta.property %}property="{{ meta.property }}" {% endif %}{% if meta.content %}content="{{ meta.content }}" {% endif %}/>
{% endfor %}
<meta {% if meta.name %}name="{{ meta.name|e }}" {% endif %}{% if meta.http_equiv %}http-equiv="{{ meta.http_equiv|e }}" {% endif %}{% if meta.charset %}charset="{{ meta.charset|e }}" {% endif %}{% if meta.property %}property="{{ meta.property|e }}" {% endif %}{% if meta.content %}content="{{ meta.content|raw }}" {% endif %}/>
{% endfor %}