b3750daa53
Former-commit-id: 5bb0ac43c8c39cf00e005b02a03d70d35e6fe64b [formerly 23936354add9aebfcea8c3246126e1354ade1448] [formerly 3a88851c49b4737645eb1d4a1f2e86ec385a59e0 [formerly 6eb8aac29c52326c913809e42a59b770db43acac]] Former-commit-id: 2446654dd32925037901e90804f6e7b868547529 [formerly 249137acb18d9e0528b88defb46cbeaaf00e8496] Former-commit-id: 187880335066aad9584ded8b166cab0868dc22a1
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 post.alt == 'en' %}Created by{% 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 %}
|