From 8e01ac211c8ac7cd73c6c615423a39743ba7bc5d Mon Sep 17 00:00:00 2001 From: Hugues Tennier Date: Mon, 19 May 2025 11:47:31 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20spacing=20in=20case=20it=E2=80=99s=20an?= =?UTF-8?q?=20array?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/themes/v2/layout/templates.ejs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/themes/v2/layout/templates.ejs b/docs/themes/v2/layout/templates.ejs index ac54be472ddd..ebd1fc955182 100644 --- a/docs/themes/v2/layout/templates.ejs +++ b/docs/themes/v2/layout/templates.ejs @@ -4,10 +4,11 @@
<% page.cards.forEach(function(card) { %> + <% const tags = typeof card.categories === "object" ? card.categories.join(", ") : card.categories %>
<%- partial("component/heading", {text: card.title, size: "XXSmall", tag: "span" }) %> - <%- partial("component/text", {text: card.categories, tag: "p", size: "Small"}) %> + <%- partial("component/text", {text: tags, tag: "p", size: "Small"}) %>
<% }); %>
\ No newline at end of file