From 562abb90cae789857880e5f1b44328e7785d519b Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Tue, 12 Mar 2024 08:46:04 +0100
Subject: [PATCH] fix

---
 layouts/partials/projects/project.html | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/layouts/partials/projects/project.html b/layouts/partials/projects/project.html
index b52abb9c..de399590 100644
--- a/layouts/partials/projects/project.html
+++ b/layouts/partials/projects/project.html
@@ -7,7 +7,7 @@
 
 {{ with $project }}
 
-<article class="project" itemscope itemtype="https://schema.org/CreativeWork"">
+<article class="project" itemscope itemtype="https://schema.org/CreativeWork">
 
   <div class="project-content">
     {{- $title := partial "PrepareHTML" .Title -}}
@@ -16,14 +16,12 @@
       <a href="{{ .Permalink }}" itemprop="url" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
     {{ $heading_tag.close }}
 
-    {{ if site.Params.projects.index.show_description }}
-      {{- if partial "GetTextFromHTML" .Params.summary -}}
-        <p itemprop="abstract">{{ partial "GetTruncateContent" ( dict 
-          "text" .Params.summary
-          "length" site.Params.projects.index.truncate_description
-          ) }}</p>
-      {{- end -}}
-    {{- end -}}
+    {{ if and site.Params.projects.index.show_description (partial "GetTextFromHTML" .Params.summary) }}
+      <p itemprop="abstract">{{ partial "GetTruncateContent" ( dict 
+        "text" .Params.summary
+        "length" site.Params.projects.index.truncate_description
+        ) }}</p>
+    {{ end }}
 
     {{ if site.Params.projects.index.show_categories }}
       {{- partial "projects/categories" . -}}
-- 
GitLab