fix catégories
This commit is contained in:
parent
1277996241
commit
f5eecd1844
@ -1,11 +1,14 @@
|
||||
{% set cat = item.categories|last %}
|
||||
{% set term = item.categories|first %}
|
||||
{% if name == 'other' %}
|
||||
{% set cat = post.categories|first.slug %}
|
||||
{% else %}
|
||||
{% set cat = item.categories|first.slug %}
|
||||
{% endif %}
|
||||
|
||||
<div class="item thumbnails col-12 col-sm-6 col-lg-4 mb-5 {{cat.slug}}">
|
||||
<div class="item thumbnails col-12 col-sm-6 col-lg-4 mb-5 {{cat}}">
|
||||
<a href="{{site.url}}/{{item.post_name}}">
|
||||
|
||||
<div class="__images">
|
||||
<div class="icone_cat {{term.slug}} {{cat.slug}}">
|
||||
<div class="icone_cat {{cat}}">
|
||||
|
||||
</div>
|
||||
<div class="__img">
|
||||
|
@ -119,7 +119,7 @@
|
||||
</div>
|
||||
<div class="other-posts row">
|
||||
{% for item in other %}
|
||||
{% include 'components/thumbnails/thumbnails.twig' %}
|
||||
{% include 'components/thumbnails/thumbnails.twig' with { name : 'other'} %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user