From d87de4bd09546c44dc92d4048adac31234aa1a40 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Mon, 19 Feb 2024 11:39:46 +0100
Subject: [PATCH] Fix programs list

---
 layouts/programs/list.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/layouts/programs/list.html b/layouts/programs/list.html
index db2c2b6b..33406b15 100644
--- a/layouts/programs/list.html
+++ b/layouts/programs/list.html
@@ -1,9 +1,9 @@
 {{ define "main" }}
-  {{ if .Params.diplomas }}
-    {{ partial "programs/hero-single.html" . }}
-    {{ partial "programs/single.html" . }}
-  {{ else }}
+  {{ if eq .File.Path "programs/_index.html" }}
     {{ partial "programs/hero.html" . }}
     {{ partial "programs/list.html" . }}
+{{ else }}
+    {{ partial "programs/hero-single.html" . }}
+    {{ partial "programs/single.html" . }}
   {{ end }}
 {{ end }}
-- 
GitLab