9a8f01266d
Former-commit-id: b7d8a1e9c747d1b6794905f11534215cc034c03f [formerly a5ba32508b2443e151b2a6eeb6a8146c68e31969] [formerly 1d264ce107f18188eca33f09d3e4cab3ec57de77 [formerly 57b7f8d59b9f6d8cff17389a8639d921d14da555]] Former-commit-id: 28ff10f6c80e469e25a122428ff65346ce705d85 [formerly 0754f0ea986eb131959f1fbbfdb9b999653ba8e0] Former-commit-id: 843a7eb673e9cd4dd0d0005652752ae259a8461c
56 lines
2.4 KiB
HTML
56 lines
2.4 KiB
HTML
{% macro render_blog_post(post, from_index=false) %}
|
|
{% if from_index == True %}
|
|
<!-- Wrapper -->
|
|
<!-- <section id="wrapper"> -->
|
|
<header>
|
|
<div class="inner">
|
|
{% if from_index %}
|
|
<h2><a href="{{ post|url }}">{{ post.title }}</a></h2>
|
|
{% else %}
|
|
<h2>{{ post.title }}</h2>
|
|
{% endif %}
|
|
<p class="meta">{% if bag('translate', post.alt, 'created')
|
|
%}{{ bag('translate', post.alt, 'created') }}{% else %}Geschrieben von{% endif %} {%
|
|
if post.twitter_handle %}<a href="https://chaos.social/@{{ post.twitter_handle }}">{{ post.author or post.twitter_handle }}</a>{%
|
|
else %}{{ post.author }}{%
|
|
endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}</p>
|
|
</div>
|
|
</header>
|
|
{% else %}
|
|
<section class="wrapper alt spotlight style2">
|
|
<div class="inner">
|
|
<div class="content">
|
|
<h2 class="major">{{ post.title }}</h2>
|
|
<p class="meta">{% if bag('translate', post.alt, 'created')
|
|
%}{{ bag('translate', post.alt, 'created') }}{% else %}Verfasst von{% endif %} {%
|
|
if post.twitter_handle %}<a href="https://chaos.social/@{{ post.twitter_handle }}">{{ post.author or post.twitter_handle }}</a>{%
|
|
else %}{{ post.author }}{%
|
|
endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}</p>
|
|
</div>
|
|
</section>
|
|
{% endif %}
|
|
<!-- Content -->
|
|
<div class="wrapper">
|
|
<div class="inner">
|
|
<h2 class="major">{{ post.subtitle }}</h2>
|
|
{{ post.body }}
|
|
{% if from_index == False %}
|
|
{{ post.privatebody }}
|
|
{{ post.galerie }}
|
|
{% if post.galerie %}
|
|
<div class="lightgallery" class="row alt">{%
|
|
for blk in post.galerie.blocks %}
|
|
{{ blk }}
|
|
{% endfor %}</div>{% endif %}
|
|
{% else %}
|
|
<h2 class="major">{%
|
|
if bag('translate', post.alt, 'read')
|
|
%}{{ bag('translate', post.alt, 'read') }}{% else %}Weiter lesen{% endif %}</h2>
|
|
<a class="button special fit" href="{{ post|url }}">{{ post.title }}</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<!-- </section>-->
|
|
|
|
|
|
{% endmacro %}
|