660a1963c8
Former-commit-id: 092dd153489e0a2689f9e6c45cf2b0a153226f39 [formerly 5e24da7501a0de0e4f58079bfd9ef1c644609c42] [formerly a66e2d5bc2522ac867e932253c6f5fe0dfa2d79e [formerly a911c57480b165a1e29ea3b8c84a5f7a9e4ec143]] Former-commit-id: 8f54ab55d63841fad8594cfcc38e74b2cf91cff4 [formerly 686e718a35bdde1286dbe2ac48e1389413515209] Former-commit-id: d764f591db7dd057f6048de214232b9fc6eb8358
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 %}
|