cc2127e464
Former-commit-id: 041439d4e135473c3f136bb1dfeb1a89fd58d77a [formerly f8e194d684dec301f6dc1aca0d10f0fd23915043] [formerly e6232ebf75423c60262d593f2ae67b2bd24c68fa [formerly 6fbd6648444c58ce5b9ab3cd7e34a43d00ec6ffe]] Former-commit-id: 6534205710be743b982fe43e48fefcdb354b1052 [formerly 853e36f16c60920d9db4ffdf2b1132d24b1ccdf0] Former-commit-id: de50ce5c955a8d47e08d227cfec74c1a4222b37f
49 lines
2.2 KiB
HTML
49 lines
2.2 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 }}
|
|
{% 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 %}
|