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

12 lines
366 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">
2019-06-07 00:12:16 +00:00
<% post.photos.forEach((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>
<% } %>