You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

<%
var plats = [];
if (item.display) {
item.display.forEach(function(plat){
plats.push(plat);
});
} else {
plats = ['desktop', 'mobile'];
}
%>
<section class="widget <%- theme.style.shadow.card ? 'card-shadow' : '' %> <%- theme.style.blur && theme.style.blur.widget ? 'widget-blur' : '' %> <%- item.class %> <%- plats.join(' ') %>">
4 years ago
<div class='content'>
<% if (item.blockquote == true) { %>
<blockquote>
<% (item.content||[]).forEach(function(row){ %>
4 years ago
<% if (row == 'permalink') { %>
<p><%- item.permalink %><a href=<%- page.permalink %>><%- page.permalink %></a></p>
4 years ago
<% } else { %>
<%- markdown(row) %>
4 years ago
<% } %>
<% }) %>
</blockquote>
<% } else { %>
<% (item.content||[]).forEach(function(row){ %>
<% if (row == 'permalink') { %>
<p><%- item.permalink %><a href=<%- page.permalink %>><%- page.permalink %></a></p>
<% } else { %>
<%- markdown(row) %>
<% } %>
4 years ago
<% }) %>
<% } %>
4 years ago
</div>
</section>