2018-02-25 00:06:19 +01:00
|
|
|
{% macro render_blog_post(post, from_index=false) %}
|
2018-04-24 23:20:20 +02:00
|
|
|
{% 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 %}
|
2018-10-15 23:46:49 +02:00
|
|
|
<p class="meta">{% if post.alt == 'en' %}Created by{% else
|
|
|
|
%}Geschrieben von{% endif %} {%
|
2018-04-24 23:20:20 +02:00
|
|
|
if post.twitter_handle %}<a href="https://chaos.social/@{{ post.twitter_handle }}">{{ post.author or post.twitter_handle }}</a>{%
|
|
|
|
else %}{{ post.author }}{%
|
2018-10-15 23:46:49 +02:00
|
|
|
endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}</p>
|
2018-04-24 23:20:20 +02:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
{% else %}
|
|
|
|
<section class="wrapper alt spotlight style2">
|
|
|
|
<div class="inner">
|
|
|
|
<div class="content">
|
|
|
|
<h2 class="major">{{ post.title }}</h2>
|
2018-10-15 23:46:49 +02:00
|
|
|
<p class="meta">{% if post.alt == 'en' %}Created by{% else %}Verfasst von {% endif %}{%
|
2018-04-24 23:20:20 +02:00
|
|
|
if post.twitter_handle %}<a href="https://chaos.social/@{{ post.twitter_handle }}">{{ post.author or post.twitter_handle }}</a>{%
|
|
|
|
else %}{{ post.author }}{%
|
2018-10-15 23:46:49 +02:00
|
|
|
endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}</p>
|
2018-02-25 00:06:19 +01:00
|
|
|
</div>
|
2018-04-24 23:20:20 +02:00
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
<!-- Content -->
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="inner">
|
|
|
|
<h2 class="major">{{ post.subtitle }}</h2>
|
2018-10-12 19:19:16 +02:00
|
|
|
{{ post.body }}
|
2018-04-26 08:48:17 +02:00
|
|
|
{% if from_index == False %}
|
|
|
|
{{ post.privatebody }}
|
|
|
|
{% else %}
|
2018-10-15 23:46:49 +02:00
|
|
|
<h2 class="major">{% if post.alt == 'en' %}continue reading{% else %}Weiter lesen{% endif %}</h2>
|
2018-04-26 08:48:17 +02:00
|
|
|
<a class="button special fit" href="{{ post|url }}">{{ post.title }}</a>
|
|
|
|
{% endif %}
|
2018-04-24 23:20:20 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- </section>-->
|
|
|
|
|
|
|
|
|
2018-02-25 00:06:19 +01:00
|
|
|
{% endmacro %}
|