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