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

17 lines
544 B
JavaScript
Raw 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="article-albums">
<ul class="article-albums-photos" id="basicExample">
<% post.albums.forEach(function(photo){ %>
2019-12-03 11:37:44 +00:00
2020-03-16 03:24:54 +00:00
<li class="article-albums-item" data-scroll-reveal>
<img class="lazy" data-original="<%- url_for(photo[0]) %>" itemprop="image" alt="<%- photo[1] %>"
style="cursor: pointer;">
<% if (photo && photo.length > 1){ %>
<span class="article-albums-caption"> <%- photo[1] %> </span>
<% } %>
</li>
2019-12-03 11:37:44 +00:00
2020-03-16 03:24:54 +00:00
<% }) %>
</ul>
</div>
<% } %>