This commit is contained in:
2020-06-14 15:59:06 +02:00
parent 4e25309391
commit 1fb5efd7dc
6 changed files with 29 additions and 45 deletions
+12 -3
View File
@@ -2,10 +2,19 @@
{% block content %}
<section>
<ul class="cat-list d-flex flex-wrap">
{% for cat in terms %}
<a data-filter=".{{cat.slug}}" href="#">
<li>{{cat.name}}</li>
</a>
{% endfor %}
</ul>
<div class="row align-items-start">
{% for item in posts %}
{% include 'components/thumbnails/thumbnails.twig'%}
{% endfor %}
{% for item in posts %}
{% include 'components/thumbnails/thumbnails.twig'%}
{% endfor %}
</div>
</section>
{% endblock %}
@@ -1,9 +1,14 @@
{% set cat = item.categories|last %}
<div class="item thumbnails col-md-4 col-sm-6">
<a href="{{site.url}}/{{item.slug}}">
<div class="__images">
<div class="__img">
<img src="{{ Image(item.image_event).src|resize(500, 500) }}" >
<div class="item thumbnails col-md-4 col-sm-6 {{cat.slug}} {{post.category.slug}}">
<a href="{{site.url}}/{{item.post_name}}">
<div class="__images">
<div class="icone_cat ">
</div>
<div class="__img">
<img src="{{ Image(item.image_event).src|resize(500, 500) }}" >
</div>
</div>
+4 -2
View File
@@ -1,7 +1,6 @@
{% extends "base.twig" %}
{% block content %}
<div class="content-wrapper">
<article class="post-type">
<img src="{{ Image(post.image_event).src |resize(600, 600) }}" />
<section class="article-content">
@@ -20,6 +19,9 @@
</div>
</div>
<div class="lieu">{{post.lieu}}</div>
<div class="cat {{post.category.slug}}">
{{post.category.name}}
</div>
</div>
<div class="article-body">
<p>{{post.description}}</p>
@@ -66,7 +68,7 @@
</div>
<div class="other-posts">
{% for item in other %}
{% for item in other %}
{% include 'components/thumbnails/thumbnails.twig' %}
{% endfor %}
</div>