🚀 fix: albums display
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>
|
||||
<%- js('js/ayer') %>
|
||||
|
||||
<% if (theme.image_viewer && is_post()){ %>
|
||||
<% if (theme.image_viewer){ %>
|
||||
<%- partial('viewer') %>
|
||||
<% } %>
|
||||
<% if (theme.mathjax){ %>
|
||||
@@ -63,4 +63,4 @@
|
||||
<%- js('/js/busuanzi-2.3.pure.min') %>
|
||||
<% } %>
|
||||
|
||||
<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
|
||||
<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
|
@@ -1,18 +1,17 @@
|
||||
<% if (post.albums && post.albums.length){ %>
|
||||
<div class="article-albums">
|
||||
<ul class="article-albums-photos" id="basicExample">
|
||||
<% post.albums.forEach(function(photo){ %>
|
||||
<div class="article-albums">
|
||||
<ul class="article-albums-photos" id="basicExample">
|
||||
<% post.albums.forEach(function(photo){ %>
|
||||
|
||||
<li class="article-albums-item" data-scroll-reveal>
|
||||
<a class="article-albums-img fancybox" data-fancybox="images" data-caption="<%- photo[1] %>" href="<%- url_for(photo[0]) %>" rel="gallery_<%= post._id %>" title="<%- photo[1] %>">
|
||||
<img class="lazy" data-original="<%- url_for(photo[0]) %>" itemprop="image" alt="<%- photo[1] %>">
|
||||
</a>
|
||||
<% if (photo && photo.length > 1){ %>
|
||||
<span class="article-albums-caption"> <%- photo[1] %> </span>
|
||||
<% } %>
|
||||
</li>
|
||||
<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>
|
||||
|
||||
<% }) %>
|
||||
</ul>
|
||||
</div>
|
||||
<% } %>
|
||||
<% }) %>
|
||||
</ul>
|
||||
</div>
|
||||
<% } %>
|
@@ -1,12 +1,9 @@
|
||||
<% if (post.albums && post.albums.length){ %>
|
||||
<div class="justified-gallery" id="gallery">
|
||||
<div class="justified-gallery" id="gallery">
|
||||
<% post.albums.forEach(function(photo){ %>
|
||||
<div>
|
||||
<a class="fancybox" data-fancybox="images" data-caption="<%- photo[1] %>" href="<%- url_for(photo[0]) %>" rel="gallery_<%= post._id %>" title="<%- photo[1] %>">
|
||||
<img src="<%- url_for(photo[0]) %>" itemprop="image" alt="<%- photo[1] %>">
|
||||
</a>
|
||||
</div>
|
||||
<% }) %>
|
||||
<div>
|
||||
<img src="<%- url_for(photo[0]) %>" itemprop="image" alt="<%- photo[1] %>" style="cursor: pointer;">
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<% }) %>
|
||||
</div>
|
||||
<% } %>
|
@@ -66,7 +66,7 @@
|
||||
</div>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"></script>
|
||||
|
||||
|
Reference in New Issue
Block a user