c1d55305d4
Former-commit-id: 089dcc3da467c361e07043dcfe72032dc24db95d [formerly dde8cbb1c62b5357ae51069107d061cfd0ad428b] [formerly 3874d4c68c61ef30545e605710f212cdfa009a50 [formerly 38317396713bcc0e3f112adbfbfae15c0e39e764]] Former-commit-id: 1d6e9b5579247d9d09683d54132669bdd00fd353 [formerly eabd4e3bf0af27d5b0ffffbad64cdcf45d316fa8] Former-commit-id: c1459dd71c8e5c86be37bdc2689b577bf5cffdac
46 lines
1.8 KiB
HTML
46 lines
1.8 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">Geschrieben von {%
|
|
if post.twitter_handle %}<a href="https://chaos.social/@{{ post.twitter_handle }}">{{ post.author or post.twitter_handle }}</a>{%
|
|
else %}{{ post.author }}{%
|
|
endif %} am {{ post.pub_date.strftime('%d. %m. %Y') }}</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">Verfasst von {%
|
|
if post.twitter_handle %}<a href="https://chaos.social/@{{ post.twitter_handle }}">{{ post.author or post.twitter_handle }}</a>{%
|
|
else %}{{ post.author }}{%
|
|
endif %} am {{ post.pub_date.strftime('%d. %m. %Y') }}</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 }}
|
|
{% else %}
|
|
<h2 class="major">Weiterlesen:</h2>
|
|
<a class="button special fit" href="{{ post|url }}">{{ post.title }}</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<!-- </section>-->
|
|
|
|
|
|
{% endmacro %}
|