json and dump filter

This commit is contained in:
Sebastian Frank
2019-03-11 15:29:05 +01:00
parent a2eaa3f4b4
commit 2f2454ee54
8 changed files with 107 additions and 20 deletions

View File

@@ -100,15 +100,34 @@
<!-- ========== Main Content ========== -->
<div class="maincontent">
{% if Data.background %}
<img src="{{ Data.background|relative_path }}" alt="{{ Meta.Title }}" class="img2bg">
<img
src="{{ Data.background|image_process:"p=fill,w=1440,h=810,q=30" }}"
srcset="{{ Data.background|image_process:"p=fill,w=768,h=768,q=30" }} 768w,
{{ Data.background|image_process:"p=fill,w=1440,h=810,q=30" }} 1440w,
{{ Data.background|image_process:"p=fill,w=1920,h=1020,q=30" }} 1920w"
alt="{{ Meta.Title }}" class="img2bg">
{% endif %}
<div class="white_section section_padding">
<div class="container">
{% block part1 %}
{{ BodyParts.1 }}
{% endblock part1 %}
{% if This.Data.img %}
{% if Data.debug %}
<hr>
<h2>DEBUG</h2>
<h3>This</h3>
<pre>{{ This|json:"pretty" }}</pre>
<h3>Data</h3>
<pre>{{ Data|json:"pretty" }}</pre>
<h3>NavMap</h3>
<pre>{{ NavMap|json: "pretty" }}</pre>
{% endif %}
</div>
</div>