collections as one navigation level

This commit is contained in:
Sebastian Frank
2019-03-10 16:02:53 +01:00
parent e3dfbcb591
commit 38820e6baf
6 changed files with 157 additions and 47 deletions

View File

@@ -2,7 +2,7 @@
{% block part0 %}
{{ Body }}
{% for e in NavElement.ColMap.blog1st.entries %}
{% for e in NavElement.ColMap.blog1st %}
<h2>
{{ e.title }}
<div class="datum">{{ e.date|datum }}</div>
@@ -10,7 +10,6 @@
{{ e.teaser|markdown }}
{% if e.body %}
<a href="{{ e.date|add:"-"|add:e.title|slugify }}" class="btn">mehr lesen &raquo;</a>
{{ fnRender("base_blog_details.html", e.date|add:"-"|add:e.title, e, "details", e.body) }}
{% endif %}
{% endfor %}
{% endblock part0 %}
@@ -19,7 +18,7 @@
{% comment %}
limit wird für skip in Query gebraucht
{% endcomment %}
{% for e in NavElement.ColMap.blog1skip.entries %}
{% for e in NavElement.ColMap.blog1skip %}
<h2>
{{ e.title }}
<div class="datum">{{ e.date|datum }}</div>
@@ -27,7 +26,6 @@
{{ e.teaser|markdown }}
{% if e.body %}
<a href="{{ e.date|add:"-"|add:e.title|slugify }}" class="btn">mehr lesen &raquo;</a>
{{ fnRender("base_blog_details.html", e.date|add:"-"|add:e.title, e, "details", e.body) }}
{% endif %}
{% endfor %}
{% endblock part1 %}