Path: blob/main/src/resources/projects/website/listing/feed/item.ejs.md
12923 views
<%= escape(item.title) %>
<% if (item.authors) { %>
<% for (const author of item.authors) { %>
<%= escape(author) %>
<% } %>
<% } %>
<%= item.link %>
<%= escape(item.description) %>
<% if (item.categories && Array.isArray(item.categories)) { %>
<% for (const category of item.categories) { %>
<%= escape(category) %>
<% } %>
<% } %>
<%= item.guid %>
<% if (item.pubDate) { %>
<%= item.pubDate.toUTCString() %>
<% } %>
<% if (item.image) { %>
<%
const imgWidthAttr = item.imageHeight ? ` width="${item.imageWidth}"` : '';
const imgHeightAttr = item.imageHeight ? ` height="${item.imageHeight}"` : '';
const imgTypeAttr = item.imageContentType ? ` type="${item.imageContentType}"`: '';
%>
<%= imgHeightAttr %><%= imgWidthAttr %>/>
<% } %>