From 7757b50e9fe97fd6f6b2828be78f6c505ef61179 Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Thu, 4 Apr 2024 22:15:23 +0200
Subject: [PATCH] fixes

---
 layouts/partials/events/event.html | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/layouts/partials/events/event.html b/layouts/partials/events/event.html
index cc57c585..b1430682 100644
--- a/layouts/partials/events/event.html
+++ b/layouts/partials/events/event.html
@@ -41,7 +41,7 @@
           {{ end -}}
         </div>
       {{ end }}
-      {{ if and .Params.events_categories $show_status }}
+      {{ if and .Params.dates.status $show_status }}
         <p class="event-status">
           {{ if eq .Params.dates.status "current"}}
             {{- i18n "blocks.events.current" -}}
@@ -64,14 +64,14 @@
             </p>
           </div>
         {{- end -}}
-        
-        {{ if and .Params.events_categories $show_category }}
-          <p class="event-categories">
-            {{- range $index, $category := .GetTerms "events_categories" -}}
-              <span>{{- $category.Title -}}</span>
-            {{- end -}}
-          </p>
-        {{ end }}
+      {{ end }}
+
+      {{ if and .Params.events_categories $show_category }}
+        <p class="event-categories">
+          {{- range $index, $category := .GetTerms "events_categories" -}}
+            <span>{{- $category.Title -}}</span>
+          {{- end -}}
+        </p>
       {{- end -}}
 
       {{ if eq $layout "large" }}
-- 
GitLab