blog/themes/typing/layout/_partial/post/gallery.ejs

12 lines
371 B
Plaintext
Raw Normal View History

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