hexo-theme-ayer/layout/_partial/post/justifiedGallery.ejs

9 lines
283 B
JavaScript
Raw Permalink Normal View History

2019-12-03 11:37:44 +00:00
<% if (post.albums && post.albums.length){ %>
2020-03-16 03:24:54 +00:00
<div class="justified-gallery" id="gallery">
2019-12-03 11:37:44 +00:00
<% post.albums.forEach(function(photo){ %>
2020-03-16 03:24:54 +00:00
<div>
<img src="<%- url_for(photo[0]) %>" itemprop="image" alt="<%- photo[1] %>" style="cursor: pointer;">
2019-12-03 11:37:44 +00:00
</div>
2020-03-16 03:24:54 +00:00
<% }) %>
</div>
<% } %>