From 6e8bd267ee03e1344ae2753db0b62afa6fb9f8f3 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 22:15:05 +0000 Subject: [PATCH] spider: fix nested main tag in actualites detail page Co-authored-by: kourdroid <36898160+kourdroid@users.noreply.github.com> --- .jules/spider.md | 2 ++ src/app/(frontend)/[locale]/actualites/[slug]/page.tsx | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.jules/spider.md b/.jules/spider.md index 572ac48..0e5fb1b 100644 --- a/.jules/spider.md +++ b/.jules/spider.md @@ -10,3 +10,5 @@ ## 2024-05-19 - Typechecking JSON-LD Date Properties **Learning:** When passing potentially null date fields (like `publishedAt`, `updatedAt`) from Payload CMS to jsonLd generator functions, using the fields directly can cause strict TypeScript compilation failures since the schemas explicitly expect `string | undefined` and not `null`. **Action:** Always use the logical OR operator with `undefined` (e.g., `datePublished: post.publishedAt || undefined`) when passing date properties to JSON-LD generator functions to satisfy strict type requirements and prevent build regressions. + +## 2024-05-18 - [Fix Semantic HTML] **Learning:** Do not commit temporary modification scripts to the repository. **Action:** Make sure to delete any script used for text replacement or automated changes before committing and completing pre-commit steps. diff --git a/src/app/(frontend)/[locale]/actualites/[slug]/page.tsx b/src/app/(frontend)/[locale]/actualites/[slug]/page.tsx index e4026ac..808e7cc 100644 --- a/src/app/(frontend)/[locale]/actualites/[slug]/page.tsx +++ b/src/app/(frontend)/[locale]/actualites/[slug]/page.tsx @@ -114,8 +114,8 @@ export default async function Actualite({ params: paramsPromise }: Args) { return ( -
- {/* SEO: Use semantic
tag to indicate the primary content of the document, improving crawlability and accessibility. */} +
+ {/* Page Layout Wrapper */} {/* Search Engine Optimization Structured Data */}