Cat
4
School
Home
Überblick
Produkt
Videos
Datenschutz
News
Kontakt
Hilfe
News
<% var docs=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('application'); }).sortBy(function(upload){ return upload.index; }).value(); var images=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('image'); }).sortBy(function(upload){ return upload.index; }).value(); var image=_(images).size() > 0 ? images[0] : null; var thumbnail=image ? (_(image.thumbs).isObject() && image.thumbs[600] ? image.thumbs[600].downloadURL : image.downloadURL) : null; %>
<%=moment(post.date).format('dd')%>
<%=moment(post.date).format('DD | MMM')%>
<%=moment(post.date).fromNow()%>
<%=post.title%>
<%=post.subtitle%>
<%=post.teaser ? marked(post.teaser,markedOptions) : ''%>
<%=post.body ? marked(post.body,markedOptions) : ''%>
<% if(post.link){ %>
<%=_(post.link).prune(50)%>
<% } %>
<% _(docs).forEach(function(upload){ %>
<%=upload.name%>
<% }); %>
<% var images=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('image'); }).sortBy(function(upload){ return upload.index; }).value(); var docs=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('application'); }).sortBy(function(upload){ return upload.index; }).value(); var lastImageIndex=_(images).chain().first(5).size().value() - 1; %>
<%=moment(post.date).format('dd')%>
<%=moment(post.date).format('DD | MMM')%>
<%=moment(post.date).fromNow()%>
<% _(images).first(5).forEach(function(upload,i){ var thumbnail=_(upload.thumbs).isObject() && upload.thumbs[600] ? upload.thumbs[600].downloadURL : upload.downloadURL; %>
<% }); %>
<%=post.title%>
<%=post.subtitle%>
<%=post.teaser ? marked(post.teaser,markedOptions) : ''%>
<%=post.body ? marked(post.body,markedOptions) : ''%>
<% if(post.link){ %>
<%=_(post.link).prune(50)%>
<% } %>
<% _(docs).forEach(function(upload){ %>
<%=upload.name%>
<% }); %>
<% var images=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('image'); }).sortBy(function(upload){ return upload.index; }).value(); var docs=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('application'); }).sortBy(function(upload){ return upload.index; }).value(); %>
<%=post.title%>
<%=post.subtitle%>
<%=post.teaser ? marked(post.teaser,markedOptions) : ''%>
<%=post.body ? marked(post.body,markedOptions) : ''%>
<% if(post.link){ %>
<%=_(post.link).prune(50)%>
<% } %>
<% _(docs).forEach(function(upload){ %>
<%=upload.name%>
<% }); %>
<% var docs=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('application'); }).sortBy(function(upload){ return upload.index; }).value(); var images=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('image'); }).sortBy(function(upload){ return upload.index; }).value(); var image=_(images).size() > 0 ? images[0] : null; var thumbnail=image ? (_(image.thumbs).isObject() && image.thumbs[600] ? image.thumbs[600].downloadURL : image.downloadURL) : null; %>
<%=moment(post.date).format('dd')%>
<%=moment(post.date).format('DD | MMM')%>
<%=moment(post.date).fromNow()%>
<%=post.title%>
<%=post.subtitle%>
<%=post.teaser ? marked(post.teaser,markedOptions) : ''%>
<%=post.body ? marked(post.body,markedOptions) : ''%>
<% if(post.link){ %>
<%=_(post.link).prune(50)%>
<% } %>
<% _(docs).forEach(function(upload){ %>
<%=upload.name%>
<% }); %>
<% var images=_(post.uploads).chain().filter(function(upload){ return upload.contentType.startsWith('image'); }).sortBy(function(upload){ return upload.index; }).value(); %>
<% _(images).forEach(function(upload,i){ var thumbnail=_(upload.thumbs).isObject() && upload.thumbs[1280] ? upload.thumbs[1280].downloadURL : upload.downloadURL; %>
<% }); %>