add image descriptions

This commit is contained in:
fenwick67 2019-07-31 14:52:17 -04:00
parent eae453813d
commit fca1309e0b
2 changed files with 2 additions and 1 deletions

View file

@ -76,6 +76,7 @@ function itemsForFeed(user,feed) {
return a.type == "Document";
}).map((a)=>{
return {
name:a.name,
type:a.mediaType,
url:a.url
}

View file

@ -75,7 +75,7 @@
<% } else { %>
<a target="_top" class="enclosure" href="<%= e.url %>" >
<% if (e.type.indexOf('image') > -1){ %>
<img src="<%= e.url %>"/>
<img src="<%= e.url %>" alt="<%= e.name %>" title="<%= e.name %>"/>
<% } else { %>
<%= e.url %>
<% } %>