291d519d14
Former-commit-id: 7751ca98715df1f4023f6a3c6e7f0f7a1c59ebce [formerly 701f4bd9fd4fd79c67ba8be2f1ce2992652fc666] [formerly ecf0b2eb37f7b6511f046e53699f56326cae4fa6 [formerly c5173739d073cbc47f34eb7143f3647b8f8d91d8]] Former-commit-id: b1878c8c60e5d55f63cce820ae4d62159b865dc4 [formerly 42cb628e404218d28964f89bc86df2c21af584dd] Former-commit-id: 742e1d8aecedebf96efe2e727cb1ba7381f52856
47 lines
2.1 KiB
HTML
47 lines
2.1 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 post.alt == 'en' %}Created by{% 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 post.alt == 'en' %}continue reading{% else %}Weiter lesen{% endif %}</h2>
|
|
<a class="button special fit" href="{{ post|url }}">{{ post.title }}</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<!-- </section>-->
|
|
|
|
|
|
{% endmacro %}
|