FEATURE Transforming repertoire into the front page — fixing breadcrumb
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-09-01 14:38:46 +02:00
parent 7854c22d3b
commit bcbe865cc4

View File

@ -26,7 +26,6 @@
<div class="homegrade-page-container metiers-patrimoine-page-container--repertoire-metiers">
<nav class=" breadcrumbs_navigation" aria-label="<?php echo __("Vous êtes ici", "metiers-patrimoine-theme") ?>">
<?php
$currentPage = get_post(get_queried_object_id());
$networkHomeUrl = network_home_url();
$frontPageUrl = get_home_url();
@ -41,9 +40,7 @@
<li><a href="<?php echo $frontPageUrl ?>"><?php echo $frontPageTitle ?></a></li>
<?php if ($currentPage) : ?>
<li><a href="<?php echo get_post_permalink($currentPage->ID) ?>" aria-current="location" aria-disabled="true"><?php echo $currentPage->post_title ?></a></li>
<?php endif; ?>
</ol>
</nav>
@ -67,7 +64,7 @@
<?php
$post_date = get_the_date('j.m.Y', $initialPosts->ID) ?? null;
get_template_part(
'template-components/artisans/card-artisans-search',
null,