Skip to content

Commit

Permalink
Avoid NA in tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaiacs committed Aug 18, 2023
1 parent 1873c2e commit 4d33af3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions demo/gallery/ejs/tiles.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,30 @@
<a href="<%- tile.href %>">
<div class="gs_teaser methods_hub_nav_teaser">
<h2>
<%= tile.title %>
<% if (tile.title && tile.title != "NA") { %>
<%= tile.title %>
<% } else { %>
Missing title
<% } %>
</h2>
<% if (tile.cover_image && tile.cover_image != "NA") { %>
<img src="<%- tile.cover_image %>" alt="<%- tile.description %>" />
<% } %>
</div>
</a>
</div>
<div class="frame frame-default frame-type-textmedia frame-layout-0">
<div class="ce-textpic ce-right ce-intext">
<div class="ce-bodytext">
<% if (tile.subtitle && tile.subtitle != "NA") { %>
<p>
<%= tile.subtitle %>
</p>
<% } %>
</div>
</div>
</div>
</div>
<% }); %>
</div>
```
```

0 comments on commit 4d33af3

Please sign in to comment.