json and dump filter
This commit is contained in:
@@ -11,5 +11,6 @@ Markdown:
|
||||
ChromaStyle: monokai
|
||||
|
||||
Data:
|
||||
debug: True
|
||||
matomoSiteId: 89
|
||||
token: 89ff216524093123bf7a0a10f7b273 # cockpit api token
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user