This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
mystic/themes/hueman/layout/common/thumbnail.ejs

12 lines
485 B
Plaintext
Raw Normal View History

2018-09-03 07:41:16 +00:00
<a href="<%- url_for(post.link ? post.link : post.path) %>" class="thumbnail">
<% var thumbnailUrl = thumbnail(post) %>
<% if (thumbnailUrl) { %>
<span style="background-image:url(<%- thumbnailUrl %>)" alt="<%= post.title %>" class="thumbnail-image"></span>
<% } else { %>
<span class="thumbnail-image thumbnail-none"></span>
<% } %>
<% if (typeof(counter) !== 'undefined' && counter) { %>
<%- partial('comment/counter') %>
<% } %>
</a>