FEATURE refining search results aspects

This commit is contained in:
Nonimart 2025-10-15 15:27:43 +02:00
parent 8a057c15a9
commit 4ef1815a4d
3 changed files with 9 additions and 2 deletions

View File

@ -38,6 +38,7 @@
@apply transition-shadow hover:shadow-lg; @apply transition-shadow hover:shadow-lg;
&__title { &__title {
@apply text-xl !mb-2;
line-height: 1.2; line-height: 1.2;
} }
@ -61,6 +62,10 @@
@apply hover:underline; @apply hover:underline;
} }
&__parution-date {
@apply block text-lg font-normal text-primary !mb-4;
}
.search-highlight { .search-highlight {
@apply text-primary bg-carhop-green-50 font-bold; @apply text-primary bg-carhop-green-50 font-bold;
} }

View File

@ -56,6 +56,9 @@
?> ?>
</a> </a>
</h2> </h2>
<date class="search-results-card__parution-date">
<?php echo get_the_date('F Y'); ?>
</date>
<div class="search-results-page__search-snippet"> <div class="search-results-page__search-snippet">
<?php echo get_search_snippet(get_the_ID(), get_search_query()); ?> <?php echo get_search_snippet(get_the_ID(), get_search_query()); ?>
</div> </div>

View File

@ -22,11 +22,10 @@ $articles = get_field('articles', $current_issue->ID);
<div class="content-wrapper" data-active-tab="table-of-contents"> <div class="content-wrapper" data-active-tab="table-of-contents">
<div class="sidebar"> <div class="sidebar">
<div class="search-field"> <div class="search-field">
<input type="text" placeholder="Rechercher"> <input type="text" placeholder="Rechercher dans la revue">
</div> </div>
<?php <?php
$tags = get_revue_terms($current_issue->ID, 'etiquettes'); $tags = get_revue_terms($current_issue->ID, 'etiquettes');
?> ?>
<?php if ($tags) : ?> <?php if ($tags) : ?>
<div class="tags"> <div class="tags">