add description when metadata is shared

This commit is contained in:
Andrew Jackson
2025-03-08 09:07:57 +00:00
parent b33485baf1
commit 3e0d89ac95
3 changed files with 13 additions and 1 deletions
+6
View File
@@ -34,6 +34,9 @@
items.slice(0, 50).forEach(item => {
if (item.video) { %>
<a data-video='<%- item.video %>'
<% if (item.description) { %>
data-sub-html='<p><%= item.description %></p>'
<% } %>
<% if (item.downloadUrl) { %>
data-download-url="<%- item.downloadUrl %>"
<% } %>
@@ -43,6 +46,9 @@
</a>
<% } else { %>
<a href="<%- item.previewUrl %>"
<% if (item.description) { %>
data-sub-html='<p><%= item.description %></p>'
<% } %>
<% if (item.downloadUrl) { %>
data-download-url="<%- item.downloadUrl %>"
<% } %>