first commit

This commit is contained in:
2017-10-05 18:23:52 +02:00
commit 3a395d8e87
41 changed files with 2087 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
{% set name = article.title %}
{% set link = article.url %}
{% extends "base.html" %}
{% block content %}
{% from 'macro.html' import article_info with context %}
{% from 'macro.html' import genurl with context %}
{{ article_info(article) }}
<hr/>
<div id="article_content">
{{ article.content }}
</div>
<hr/>
{% if article.related_posts %}
{% from 'macro.html' import article_panel_list with context %}
{% set articles = article.related_posts %}
{% set parent = '' %}
{% set id = "collapseRelated" %}
{% set title_left = "Verwandte Posts" %}
{% set title_right = articles|count %}
{% set entry_list = articles %}
{{ article_panel_list(parent,id,title_left,title_right,entry_list) }}
{% endif %}
{% for temp in dates %}
{% if temp.url == article.url %}
{% if not loop.first %}
{% set prev = dates[loop.index0-1] %}
{% endif %}
{% if not loop.last %}
{% set next = dates[loop.index0+1] %}
{% endif %}
<ul class="pager">
<li class="previous{% if not prev %} disabled{% endif %}">
<a {% if prev %}href="{{ genurl( prev.url, force=True ) }}"{% endif %}>
&laquo; Neuer</a>
</li>
<li class="next{% if not next %} disabled{% endif %}">
<a {% if next %}href="{{ genurl( next.url, force=True ) }}"{% endif %}>
&Auml;lter &raquo;</a>
</li>
</ul>
{% endif %}
{% endfor %}
{% endblock %}