diff --git a/resources/css/components/post-card.css b/resources/css/components/post-card.css index 6b2b675..b05442c 100644 --- a/resources/css/components/post-card.css +++ b/resources/css/components/post-card.css @@ -59,6 +59,14 @@ .card__description { @apply pb-5; } + + .card__birth-death-date { + @apply text-primary font-bold mb-4; + } + .card__title:has(+ .card__birth-death-date) { + @apply mb-4; + } + .card__details { @apply flex flex-col gap-3; diff --git a/template-parts/components/cards/post-card.php b/template-parts/components/cards/post-card.php index eaa5b66..49676db 100644 --- a/template-parts/components/cards/post-card.php +++ b/template-parts/components/cards/post-card.php @@ -33,6 +33,7 @@ $numerotation = get_post_meta($ID, 'post_numerotation', true); $tags = get_the_terms($ID, 'etiquettes'); $description = get_field('description', $ID); +$birth_death_date = get_field('birth_death_date', $ID); ?> @@ -56,6 +57,9 @@ $description = get_field('description', $ID);
+ +
+