hexo-theme-ayer/layout/_partial/post/justifiedGallery.ejs
2020-03-16 11:24:54 +08:00

9 lines
283 B
Plaintext

<% if (post.albums && post.albums.length){ %>
<div class="justified-gallery" id="gallery">
<% post.albums.forEach(function(photo){ %>
<div>
<img src="<%- url_for(photo[0]) %>" itemprop="image" alt="<%- photo[1] %>" style="cursor: pointer;">
</div>
<% }) %>
</div>
<% } %>