From 2ae8ee4e646553237131f8fce11386127b51aff8 Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Wed, 9 Nov 2022 09:29:43 +0100
Subject: [PATCH] correct itemprop for post

---
 layouts/partials/posts/post.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html
index 53e1daaf..f9c0b489 100644
--- a/layouts/partials/posts/post.html
+++ b/layouts/partials/posts/post.html
@@ -1,11 +1,11 @@
-<article class="post">
+<article class="post" itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
   <div>
     {{- $title := partial "PrepareHTML" .Title -}}
-    <h2 class="h4"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h2>
+    <h2 class="h4" itemprop="headline"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h2>
     {{- if (partial "GetTextFromHTML" .Params.description_short) -}}
-      <p>{{ partial "PrepareHTML" .Params.description_short }}</p>
+      <p itemprop="articleBody">{{ partial "PrepareHTML" .Params.description_short }}</p>
     {{- end -}}
-    <time datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
+    <time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
   </div>
   <div class="media">
     {{- if .Params.image -}}
-- 
GitLab