updating news templating

This commit is contained in:
Antoine M 2023-10-27 14:21:28 +02:00
parent cee32cee43
commit c8fb3bf50f
2 changed files with 8 additions and 5 deletions

View File

@ -1,15 +1,15 @@
<?php /* Template Name: News */ <?php /* Template Name: Archive News */
get_header(); get_header();
$args = array( $args = array(
'meta_key' => '_wp_page_template', 'meta_key' => '_wp_page_template',
'meta_value' => "template-news.php" 'meta_value' => "template-archive-news.php"
); );
$relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null; $relatedPageTemplatePage = get_pages($args) ? get_pages($args)[0] : null;
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null; $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
?> ?>
<div class="template-archives template-archives--publications"> <div class="template-archives template-archives--news">
<?php /* -------- <?php /* --------
BREADCRUMB BREADCRUMB
---------------*/ ?> ---------------*/ ?>

View File

@ -12,7 +12,7 @@
flex-nowrap flex-nowrap
justify-between; justify-between;
.post-infos-capsule { .post-infos-capsule {
@apply mt-4; @apply mt-8;
} }
&__type { &__type {
@apply uppercase font-medium text-xl tracking-widest; @apply uppercase font-medium text-xl tracking-widest;
@ -32,7 +32,10 @@
} }
&__thumbnail { &__thumbnail {
@apply w-80 h-56 object-cover rounded-3xl; @apply w-80 h-56 object-cover
rounded-3xl
hidden
lg:block;
flex-shrink: 2; flex-shrink: 2;
} }