From 4c51f91f1e1285eafba4e34e54200a213d892fa4 Mon Sep 17 00:00:00 2001
From: Olivier Goulet <olivier.goulet@eclipse-foundation.org>
Date: Wed, 20 Mar 2024 18:51:14 +0000
Subject: [PATCH] fix: hide missing field for research project card

---
 .../templates/research/tpl-projects-item-research.mustache  | 6 ++++--
 layouts/research/list.json.json                             | 6 +++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/js/src/templates/research/tpl-projects-item-research.mustache b/js/src/templates/research/tpl-projects-item-research.mustache
index 6556243f..04070512 100644
--- a/js/src/templates/research/tpl-projects-item-research.mustache
+++ b/js/src/templates/research/tpl-projects-item-research.mustache
@@ -15,8 +15,10 @@
             <a href="{{ website_url }}">Read More</a>
             <span class="featured-projects-website-url-bar"></span>
          </div>
-         <p>Main topic: <strong>{{ projectTopic }}</strong></p>
+         {{#project_topic}}
+           <p>Main topic: <strong>{{ project_topic }}</strong></p>
+         {{/project_topic}}
       </div>
    </div>
 </li>
-{{/items}}
\ No newline at end of file
+{{/items}}
diff --git a/layouts/research/list.json.json b/layouts/research/list.json.json
index c59a6a49..066485d2 100644
--- a/layouts/research/list.json.json
+++ b/layouts/research/list.json.json
@@ -12,10 +12,10 @@
         "logo": "{{ $logoPath }}",
         "version": {{ .Params.project_type | jsonify }},
         "tags": {{ .Params.tags | jsonify }},
-        "projectTopic": {{ $project_topic | jsonify }},
-        "fundingBodies": {{ .Params.funding_bodies | jsonify }},
+        "project_topic": {{ $project_topic | jsonify }},
+        "funding_bodies": {{ .Params.funding_bodies | jsonify }},
         "releases": []
 
     }{{ if ne $index (sub $len 1) }},{{ end }}
     {{ end }}
-]
\ No newline at end of file
+]
-- 
GitLab