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/post/gallery.ejs

9 lines
313 B
Plaintext
Raw Normal View History

2018-09-03 07:41:16 +00:00
<% if (post.photos && post.photos.length) { %>
<div class="article-gallery">
<% post.photos.forEach(function(photo, i) { %>
<a class="gallery-item" href="<%- url_for(photo) %>" rel="gallery_<%= post._id %>">
<img src="<%- url_for(photo) %>" itemprop="image" />
</a>
<% }) %>
</div>
<% } %>