<@photoTag method="listTeams">
<#list teams as item>
-
${item.team}
-
- <#list item.photos as photo>
-
+
${item.team!}
+
+ <#list item.photos?sort_by('takeTime')?reverse as photo>
+ <#if photo_index gte options.photos_page_size>
+ <#break>
+ #if>
+
-<#--
-->
-<#-- -->
-<#-- ${photo.name}-->
-<#-- -->
-<#--
-->
+ <#--
+
+ ${photo.name}
+
+
-->
-<#-- -->
+
#list>
#list>
-
@photoTag>
+
<#include "./layout/common/footer.ftl">
<#include "./layout/plugin/back-to-top.ftl">
@@ -97,7 +108,6 @@
selector: '.show'
});
})
-
@@ -67,7 +62,7 @@
diff --git a/source/js/widget_pin.js b/source/js/widget_pin.js
index 46ef5b7..3e664fd 100644
--- a/source/js/widget_pin.js
+++ b/source/js/widget_pin.js
@@ -1,17 +1,19 @@
-var swiper = new Swiper('.blog-slider', {
- autoplay: {
- delay: 3000,
- stopOnLastSlide: false,
- disableOnInteraction: true,
- },
- spaceBetween: 30,
- effect: 'fade',
- mousewheel: {
- invert: false,
- },
- // autoHeight: true,
- pagination: {
- el: '.blog-slider__pagination',
- clickable: true,
- }
-});
\ No newline at end of file
+if (window.Swiper) {
+ var swiper = new Swiper('.blog-slider', {
+ autoplay: {
+ delay: 3000,
+ stopOnLastSlide: false,
+ disableOnInteraction: true,
+ },
+ spaceBetween: 30,
+ effect: 'fade',
+ mousewheel: {
+ invert: false,
+ },
+ // autoHeight: true,
+ pagination: {
+ el: '.blog-slider__pagination',
+ clickable: true,
+ }
+ });
+}
\ No newline at end of file