2019-05-14 19:59:47 +02:00
|
|
|
{% for tag in page.taxonomy.tag %}
|
|
|
|
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
|
|
|
|
{% import _self as macro %}
|
|
|
|
|
|
|
|
<div class="card" data-filter="{{tag}}">
|
2019-06-11 11:44:58 +02:00
|
|
|
<a href="{{ page.url }}">
|
2019-05-14 19:59:47 +02:00
|
|
|
<div class="card-header {{ macro.pageLinkName(tag) }}">
|
|
|
|
{% include 'partials/blog/public.html.twig' %}
|
|
|
|
</div>
|
|
|
|
{% set image = page.media.images|first %}
|
|
|
|
{% if image %}
|
2019-04-02 19:54:29 +02:00
|
|
|
<div class="card-image">
|
2019-07-08 13:09:07 +02:00
|
|
|
{{ image.html('',page.title) }}
|
2019-04-02 19:54:29 +02:00
|
|
|
</div>
|
2019-05-14 19:59:47 +02:00
|
|
|
{% endif %}
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="card-title">
|
|
|
|
{% include 'partials/blog/date.html.twig' %}
|
|
|
|
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
|
|
|
|
</div>
|
2019-04-03 15:29:46 +02:00
|
|
|
<div class="card-summary">
|
|
|
|
{% if page.summary != page.content %}
|
2019-05-14 19:59:47 +02:00
|
|
|
{{ page.summary(100)|raw }}
|
2019-04-03 15:29:46 +02:00
|
|
|
{% endif %}
|
2019-06-11 11:44:58 +02:00
|
|
|
|
2019-04-02 19:54:29 +02:00
|
|
|
</div>
|
2019-04-03 15:29:46 +02:00
|
|
|
</div>
|
2019-06-11 11:44:58 +02:00
|
|
|
</a>
|
2019-04-02 19:54:29 +02:00
|
|
|
</div>
|
2019-05-14 19:59:47 +02:00
|
|
|
|
|
|
|
{% endfor %}
|