1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <div class="card">
- {% if page.template != "modular/news" %}
- <a href="{{ page.url }}">
- {% else %}
- {% if page.header.url_news %}
- <a href="{{ page.header.url_news }}" target="_blank">
- {% else %}
- {% endif %}
- {% endif %}
- {% set image = page.media.images|first %}
- <div class="card-header">
- {% if blog.template == 'home' %}
- <div class="card-cat">
- {% include 'partials/blog/cat.html.twig' %}
- </div>
- {% endif %}
- {% if blog.template != 'home' %}
- {% if page.template == 'events' %}
- {% for tax in page.taxonomy.category %}
- <div class="card-cat">
- <span>{{tax}}</span>
- </div>
- {% endfor %}
- {% endif %}
- {% endif %}
- <div class="card-title">
- {% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
- </div>
- <div class="card-date">
- {% include 'partials/blog/date.html.twig' %}
- </div>
- </div>
- {% if image %}
- <div class="card-image">
- {% if page.header.topH == true %}
- {{image.cropZoom(1400, 1000).sizes('(max-width:100vw) 100vw, 50vw').html(page.title, 'image article')}}
- {% else %}
- {{image.cropZoom(1400, 1000).sizes('(max-width:100vw) 100vw, 50vw').html(page.title, 'image article')}}
- {% endif %}
- </div>
- {% endif %}
- {% if page.template != "modular/news" %}
- </a>
- {% else %}
- {% if page.header.url_news %}
- </a>
- {% else %}
- {% endif %}
- {% endif %}
- </div>
|