mark2web/website/templates/base_blog_details.html

63 lines
2.3 KiB
HTML
Raw Normal View History

2019-02-27 17:33:26 +01:00
{% extends 'base.html' %}
2019-03-10 16:41:56 +01:00
{% block meta %}
<title>{{ Data.details.date|datum }} {{ Data.details.title }}</title>
<meta name="description" content="{{ Data.details.teaser }}" />
<meta name="keywords" content="{{ Meta.Keywords }}" />
{% endblock meta %}
2019-03-11 16:38:44 +01:00
{% if Data.details.slider %}
{% block slider %}
2019-03-24 14:51:40 +01:00
{% with Data.details.firstimg as img %}
{% if img %}
<div class="slide">
<img
src="{{ "https://mark2web.basiscms.de"|add:img.path|image_process:"p=fill,w=1440,h=600,q=60" }}"
srcset="{{ "https://mark2web.basiscms.de"|add:img.path|image_process:"p=fill,w=768,h=384,q=60" }} 768w,
{{ "https://mark2web.basiscms.de"|add:img.path|image_process:"p=fill,w=1440,h=600,q=60" }} 1440w,
{{ "https://mark2web.basiscms.de"|add:img.path|image_process:"p=fill,w=1920,h=800,q=60" }} 1920w"
alt="{{ img.meta.title }}">
</div>
{% endif %}
{% endwith %}
2019-03-11 16:38:44 +01:00
{% for sl in Data.details.slider %}
<div class="slide">
<img
src="{{ "https://mark2web.basiscms.de"|add:sl.path|image_process:"p=fill,w=1440,h=600,q=60" }}"
srcset="{{ "https://mark2web.basiscms.de"|add:sl.path|image_process:"p=fill,w=768,h=384,q=60" }} 768w,
{{ "https://mark2web.basiscms.de"|add:sl.path|image_process:"p=fill,w=1440,h=600,q=60" }} 1440w,
{{ "https://mark2web.basiscms.de"|add:sl.path|image_process:"p=fill,w=1920,h=800,q=60" }} 1920w"
alt="{{ sl.meta.title }}">
</div>
{% endfor %}
{% endblock slider %}
{% endif %}
2019-02-27 17:33:26 +01:00
{% block part0 %}
2019-02-28 15:40:06 +01:00
<h1>
{{ Data.details.title }}
<div class="datum">{{ Data.details.date|datum }}</div>
2019-02-28 15:40:06 +01:00
</h1>
{{ Data.details.teaser|markdown:"s=monokai" }}
2019-02-27 17:33:26 +01:00
{% endblock part0 %}
2019-03-24 14:51:40 +01:00
{% block bg %}
{% with Data.details.firstimg as img %}
{% if img %}
<img
src="{{ "https://mark2web.basiscms.de"|add:img.path|image_process:"p=fill,w=1440,h=810,q=30,t=/img" }}"
srcset="{{ "https://mark2web.basiscms.de"|add:img.path|image_process:"p=fill,w=768,h=768,q=30,t=/img" }} 768w,
{{ "https://mark2web.basiscms.de"|add:img.path|image_process:"p=fill,w=1440,h=810,q=30,t=/img" }} 1440w,
{{ "https://mark2web.basiscms.de"|add:img.path|image_process:"p=fill,w=1920,h=1020,q=30,t=/img" }} 1920w"
alt="{{ Meta.Title }}" class="img2bg">
{% endif %}
{% endwith %}
{% endblock bg %}
2019-02-27 17:33:26 +01:00
{% block part1 %}
2019-02-28 15:13:59 +01:00
{{ Body }}
2019-03-04 16:05:29 +01:00
<br>
2019-02-28 16:25:50 +01:00
<a href="../" class="btn">&laquo; zurück</a>
2019-02-28 15:40:06 +01:00
{% endblock part1 %}