From 8b0d44278fff3f04a67cf24b6411fc3c09a4481f Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Tue, 19 Sep 2023 16:45:02 +0200
Subject: [PATCH] fixed events schema

---
 layouts/partials/blocks/templates/agenda.html | 8 ++++----
 layouts/partials/events/event.html            | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/layouts/partials/blocks/templates/agenda.html b/layouts/partials/blocks/templates/agenda.html
index b2ed0712..2f60da49 100644
--- a/layouts/partials/blocks/templates/agenda.html
+++ b/layouts/partials/blocks/templates/agenda.html
@@ -3,7 +3,7 @@
 {{- $title := .block.title -}}
 
 {{- with .block.data }}
-  <div itemscope itemtype="http://schema.org/Blog" class="block block-agenda{{ if $title }} block-with-title{{ end }}">
+  <div class="block block-agenda{{ if $title }} block-with-title{{ end }}">
     <div class="container">
       <div class="block-content">
         {{ if or $title .description }}
@@ -21,16 +21,16 @@
 
         <div class="events">
           {{ range .elements }}
-            <article class="event" itemprop="events" itemscope itemtype="https://schema.org/Event">
+            <article class="event" itemscope itemtype="https://schema.org/Event">
               {{ if .data.image }}
                 {{- $direction = partial "GetImageDirection" .data.image -}}
               {{ end }}  
               <div class="event-content">
                 {{- $title := partial "PrepareHTML" .title -}}
-                <h3><a href="{{ .url }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h3>
+                <h3><a href="{{ .url }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}" itemprop="name">{{ $title }}</a></h3>
                 {{ if site.Params.events.index.show_description }}
                   {{- if (partial "GetTextFromHTML" .summary) -}}
-                    <p itemprop="articleBody">
+                    <p itemprop="description">
                       {{ if site.Params.events.index.truncate_description }}
                         {{ partial "GetTruncateContent" ( dict 
                           "text" .summary
diff --git a/layouts/partials/events/event.html b/layouts/partials/events/event.html
index 480dcc4b..efd43851 100644
--- a/layouts/partials/events/event.html
+++ b/layouts/partials/events/event.html
@@ -14,17 +14,17 @@
   {{- $direction = partial "GetImageDirection" .Params.image -}}
 {{ end }}
 
-<article class='event {{ if $alternate }}{{ $direction }} {{if not (modBool $index 2)}}left{{ else}}right{{end}}{{end}}' itemprop="events" itemscope itemtype="https://schema.org/Event">
+<article class="event" itemscope itemtype="https://schema.org/Event">
   <div class="event-content">
     {{- $title := partial "PrepareHTML" .Title -}}
 
     {{ $heading_tag.open }}
-      <a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
+      <a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}" itemprop="name">{{ $title }}</a>
     {{ $heading_tag.close }}
 
     {{ if site.Params.events.index.show_description }}
       {{- if (partial "GetTextFromHTML" .Params.summary) -}}
-        <p itemprop="articleBody">
+        <p itemprop="description">
           {{ if site.Params.events.index.truncate_description }}
             {{ partial "GetTruncateContent" ( dict 
               "text" .Params.summary
-- 
GitLab