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

12 lines
366 B
Plaintext
Raw Normal View History

2024-09-28 06:31:52 +00:00
<% if (post.photos && post.photos.length) { %>
<div class="article-gallery">
<div class="article-gallery-photos">
<% post.photos.forEach((photo, i) => { %>
<a class="article-gallery-img" href="<%- url_for(photo) %>" rel="gallery_<%= post._id %>">
<img src="<%- url_for(photo) %>" itemprop="image">
</a>
<% }) %>
</div>
</div>
<% } %>