L3D
fd742c7049
Co-authored-by: L3D <l3d@see-base.de> Reviewed-on: https://backwesen.de/c3woc/webseite/pulls/1
22 lines
888 B
HTML
22 lines
888 B
HTML
{% 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>
|
|
</section>
|
|
{% endmacro %}
|