From 4d33af3d11e8c3315105f791f66258478ce7e7ef Mon Sep 17 00:00:00 2001 From: Raniere Silva Date: Fri, 18 Aug 2023 14:35:33 +0200 Subject: [PATCH] Avoid NA in tiles --- demo/gallery/ejs/tiles.ejs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/demo/gallery/ejs/tiles.ejs b/demo/gallery/ejs/tiles.ejs index e4fad8c..3c2bff8 100644 --- a/demo/gallery/ejs/tiles.ejs +++ b/demo/gallery/ejs/tiles.ejs @@ -6,22 +6,30 @@

- <%= tile.title %> + <% if (tile.title && tile.title != "NA") { %> + <%= tile.title %> + <% } else { %> + Missing title + <% } %>

+ <% if (tile.cover_image && tile.cover_image != "NA") { %> <%- tile.description %> + <% } %>
+ <% if (tile.subtitle && tile.subtitle != "NA") { %>

<%= tile.subtitle %>

+ <% } %>
<% }); %> -``` \ No newline at end of file +```