2019-02-12 17:45:44 +01:00
|
|
|
{% macro render_blog_post(post, from_index=false) %}
|
|
|
|
{% if from_index %}
|
|
|
|
<section class="4u 6u(medium) 12u(xsmall) project">
|
2019-02-24 13:47:39 +01:00
|
|
|
<span class="icon alt major">
|
2019-02-24 17:58:58 +01:00
|
|
|
<a href="{{ post|url }}" class="project-creator" title="{%
|
|
|
|
if bag('translate', post.alt, 'projekt_title_start') %}{{ bag('translate', post.alt, 'projekt_title_start') }}{%
|
|
|
|
else %}{{ bag('translate', 'de', 'projekt_title_start') }}{%
|
|
|
|
endif %} {{ post.author }} {%
|
|
|
|
if bag('translate', post.alt, 'projekt_title_ende') %}{{ bag('translate', post.alt, 'projekt_title_ende') }}{%
|
|
|
|
else %}{{ bag('translate', 'de', 'projekt_title_ende') }}{%
|
|
|
|
endif %}">
|
2019-02-24 13:47:39 +01:00
|
|
|
<i class="{{ post.icon }} fa-3x iconshiftdown"></i></a>
|
2019-02-12 17:45:44 +01:00
|
|
|
</span>
|
|
|
|
<a href="{{ post|url }}"><h3>{{ post.title }}</h3></a>
|
|
|
|
<article class="teaser">
|
|
|
|
{{ post.teaser }}
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
{% else %}
|
|
|
|
<div id="main" class="wrapper style1">
|
|
|
|
<div class="container">
|
|
|
|
<header class="major">
|
2019-02-24 13:47:39 +01:00
|
|
|
<h2>{{ post.title }}</h2>
|
2019-02-12 17:45:44 +01:00
|
|
|
</header>
|
|
|
|
<section id="content">
|
|
|
|
{{ post.body }}
|
|
|
|
{% if post.video_is_embeded %}{% for blk in post.video_embeded.blocks %}
|
2019-05-05 23:38:31 +02:00
|
|
|
{% if blk.video_url %}
|
|
|
|
{{ blk }} <br/>
|
|
|
|
<a class="button" href="https://www.youtube.com/watch?v={{ blk.video_url }}{% if post.alt %}&gl={{ post.alt }}&hl={{ post.alt }}{% endif %}" target="_blank" rel="noopener">{%
|
2019-05-17 09:48:17 +02:00
|
|
|
if bag('translate', post.alt, 'directytlink') %}{{ bag('translate', post.alt, 'directytlink') }}{%
|
|
|
|
else %}Direkt zum YouTube-Video{% endif %}</a>{% endif %}{% if blk.video
|
2019-05-05 23:38:31 +02:00
|
|
|
%} <a class="button" href="{{ blk.video|url }}" download>{%
|
|
|
|
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
|
|
|
|
else %}Download Video{% endif %}</a>{% endif %}
|
2019-05-17 09:48:17 +02:00
|
|
|
<br/><br/>
|
2019-02-12 17:45:44 +01:00
|
|
|
{% endfor %}{%
|
|
|
|
endif %}
|
|
|
|
{% if post.project %}
|
|
|
|
<div class="lightgallery" class="row alt">{%
|
|
|
|
for blk in post.project.blocks %}
|
|
|
|
{{ blk }}
|
|
|
|
{% endfor %}</div>{%
|
|
|
|
endif %}
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|