gallery.ejs 377 B

1234567891011
  1. <% if (post.photos && post.photos.length){ %>
  2. <div class="article-gallery">
  3. <div class="article-gallery-photos">
  4. <% post.photos.forEach(function(photo, i){ %>
  5. <a class="article-gallery-img fancybox" href="<%- url_for(photo) %>" rel="gallery_<%= post._id %>">
  6. <img src="<%- url_for(photo) %>" itemprop="image">
  7. </a>
  8. <% }) %>
  9. </div>
  10. </div>
  11. <% } %>