From 0e66a5c52d9567234985972e2b867ae0805946ef Mon Sep 17 00:00:00 2001 From: Nonimart Date: Tue, 30 Sep 2025 17:05:46 +0200 Subject: [PATCH] FIX Small behaviours --- resources/css/components/post-grid.css | 3 +-- template-parts/articles/articles-grid.php | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/css/components/post-grid.css b/resources/css/components/post-grid.css index a6273de..f6d23e1 100644 --- a/resources/css/components/post-grid.css +++ b/resources/css/components/post-grid.css @@ -1,8 +1,7 @@ .post-grid { &__toolbar { @apply flex flex-col md:grid md:grid-cols-2 gap-4 md:items-center justify-between pb-12; - - h2.post-count { + .post-count { @apply flex items-end gap-2; &__count { diff --git a/template-parts/articles/articles-grid.php b/template-parts/articles/articles-grid.php index 59a1598..441985c 100644 --- a/template-parts/articles/articles-grid.php +++ b/template-parts/articles/articles-grid.php @@ -1,7 +1,8 @@ 'articles', - 'posts_per_page' => -1 + 'posts_per_page' => -1, + 'post_status' => 'publish', )); $post_count = $articles->post_count; $authors = get_posts(array( @@ -24,7 +25,7 @@ $thematiques = get_terms(array( - +