REFACTOR Starting to test to use the post-card instead of card-articles

This commit is contained in:
Nonimart 2026-03-20 17:14:08 +01:00
parent ba4f2c4132
commit 9a15512554

View File

@ -88,20 +88,25 @@ $thematiques = get_terms(array(
</div>
<ul class="post-grid__list">
<?php if ($articles->have_posts()) : ?>
<?php while ($articles->have_posts()) : $articles->the_post(); ?>
<?php get_template_part('template-parts/articles/card-article', null, array(
'date' => get_the_date(),
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
'image' => get_the_post_thumbnail_url(),
'link' => get_the_permalink(),
<?php get_template_part('template-parts/components/cards/post-card', null, array(
'ID' => get_the_ID(),
'showAuthors' => true,
'showTags' => false,
)); ?>
<?php
// get_template_part('template-parts/articles/card-article', null, array(
// 'date' => get_the_date(),
// 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
// 'image' => get_the_post_thumbnail_url(),
// 'link' => get_the_permalink(),
// 'ID' => get_the_ID(),
// 'showAuthors' => true,
// ));
?>
<?php endwhile; ?>
<?php endif; ?>
</ul>