fnRequest, pongo2-addons added
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
# Blog
|
||||
|
||||
## 20.02.2019 erstes Release veröffentlicht
|
||||
|
||||
Das erste Release von **mark2web** ist fertig. Einfache Websites lassen sich damit auf unkomplizierte Weise generieren. Später folgt die Möglichkeit Listen, Galerien und Formulare zu generieren.
|
||||
|
||||
---
|
||||
Template: base_blog.html
|
||||
|
||||
Das Release kann unter der [Release-Seite](https://gitbase.de/apairon/mark2web/releases) heruntergeladen werden.
|
||||
---
|
||||
# Blog
|
||||
@@ -72,7 +72,9 @@
|
||||
<!-- ========== Content First ========== -->
|
||||
<div class="contentfirst section_padding white_color ">
|
||||
<div class="container">
|
||||
{% block part0 %}
|
||||
{{ BodyParts.0 }}
|
||||
{% endblock part0 %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -80,7 +82,9 @@
|
||||
<div class="maincontent">
|
||||
<div class="white_section section_padding">
|
||||
<div class="container">
|
||||
{% block part1 %}
|
||||
{{ BodyParts.1 }}
|
||||
{% endblock part1 %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -108,6 +112,7 @@
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- ========== Footer ========== -->
|
||||
<footer id="footer">
|
||||
|
||||
31
website/templates/base_blog.html
Normal file
31
website/templates/base_blog.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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>
|
||||
{% 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>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endblock part1 %}
|
||||
Reference in New Issue
Block a user