webseite/templates/macros/blog.html

23 lines
888 B
HTML
Raw Normal View History

{% macro render_blog_post(post, from_index=false, section_class='-odd') %}
<section class="content {{ section_class }}">
<div class="content__box -heading">
<div class="content__inner_box">
{% if from_index %}
<h2><a class="content__blog_link {{ section_class }}" href="{{ post|url }}">{{ post.title }}</a></h2>
{% else %}
<h2>{{ post.title }}</h2>
{% endif %}
<hr class="{{ section_class }}">
<p class="content__meta">
<i>geschrieben von {{ post.author }} am {{ post.pub_date }}</i>
</p>
</div>
</div>
<div class="content__box -columns">
<div class="content__inner_box">
{{ post.body }}
</div>
</div>
2019-02-12 17:45:44 +01:00
</section>
2018-02-25 00:06:19 +01:00
{% endmacro %}