Cool-Y.github.io/themes/landscape/layout/_partial/post/gallery.ejs

11 lines
377 B
Plaintext
Raw Normal View History

2019-04-02 08:28:32 +00:00
<% if (post.photos && post.photos.length){ %>
<div class="article-gallery">
<div class="article-gallery-photos">
<% post.photos.forEach(function(photo, i){ %>
<a class="article-gallery-img fancybox" href="<%- url_for(photo) %>" rel="gallery_<%= post._id %>">
<img src="<%- url_for(photo) %>" itemprop="image">
</a>
<% }) %>
</div>
</div>
<% } %>