mark2web/website/templates/base_blog.html
Sebastian Frank 650bdc2fd6
All checks were successful
continuous-integration/drone/push Build is passing
reorganized code
2019-02-27 17:33:26 +01:00

34 lines
1.1 KiB
HTML

{% extends 'base.html' %}
{% block part0 %}
{{ Body }}
{% for e in fnRequest("https://cockpit.basiscms.de/api/collections/get/mark2webBlog?filter[published]=true&sort[date]=-1&limit=1").entries %}
<h2>
<small>{{ e.date }}</small>
{{ e.title }}
</h2>
{{ e.teaser|markdown }}
{% if e.body %}
<a href="{{ e.title|slugify }}" class="btn">mehr lesen</a>
{{ fnRender("base_blog_details.html", e.title, "details", e) }}
{% endif %}
{% endfor %}
{% endblock part0 %}
{% block part1 %}
{% comment %}
limit wird für skip in Query gebraucht
{% endcomment %}
{% for e in fnRequest("https://cockpit.basiscms.de/api/collections/get/mark2webBlog?filter[published]=true&sort[date]=-1&skip=1&limit=100").entries %}
<h2>
<small>{{ e.date }}</small>
{{ e.title }}
</h2>
{{ e.teaser|markdown }}
{% if e.body %}
<a href="{{ e.title|slugify }}" class="btn">mehr lesen</a>
{{ fnRender("base_blog_details.html", e.title, "details", e) }}
{% endif %}
{% endfor %}
{% endblock part1 %}