diff --git a/layout/common/article.ftl b/layout/common/article.ftl index 5913b9d..7cd0443 100644 --- a/layout/common/article.ftl +++ b/layout/common/article.ftl @@ -45,8 +45,8 @@
- 评论(${post.commentCount!'0'}) - 浏览(${post.visits!'0'}) + (${post.commentCount!'0'}) + (${post.visits!'0'})
@@ -80,7 +80,7 @@
<#if tags?? && (tags?size gt 0)>
- # + <#list tags as tag> ${tag.name!}  @@ -89,7 +89,7 @@
- 最后编辑时间:${post.editTime!?string('yyyy-MM-dd HH:mm:ss')} + 更新时间:${post.editTime!?string('yyyy-MM-dd HH:mm:ss')}
@@ -99,7 +99,7 @@
<#if post.tags?? && (post.tags?size gt 0)>
- # + <#list post.tags as tag> ${tag.name!}  @@ -159,7 +159,7 @@ ${prevPost.title!} <#else> - + 没有了 @@ -172,7 +172,7 @@ <#else> - + 没有了 diff --git a/layout/common/head.ftl b/layout/common/head.ftl index e69de29..eaa043d 100644 --- a/layout/common/head.ftl +++ b/layout/common/head.ftl @@ -0,0 +1,8 @@ +<#if settings.theme_static_base??> + <#if settings.theme_static_base == ''> + <#elseif settings.theme_static_base == '/' || settings.theme_static_base == '.'> + <#assign theme_base = ''> + <#else> + <#assign theme_base = settings.theme_static_base> + + \ No newline at end of file diff --git a/layout/layout.ftl b/layout/layout.ftl index 05583ad..950a1ff 100644 --- a/layout/layout.ftl +++ b/layout/layout.ftl @@ -1,4 +1,5 @@ <#macro layout title,canonical> + <#include "common/head.ftl"> <#include "common/navbar.ftl"> <#include "common/widget.ftl"> <#include "common/module.ftl"> diff --git a/photos.ftl b/photos.ftl index 93167c1..2aa79fa 100644 --- a/photos.ftl +++ b/photos.ftl @@ -1,73 +1,84 @@ <#include "./layout/common/navbar.ftl"> +<#include "./layout/common/head.ftl"> - ${title!} + ${options.photos_title!} - ${blog_title!} - - - - - - - - - - - + + + + + + + + + + + - + <@global.head /> - - + + <#include "layout/plugin/style.theme.ftl"> - - - - + + + + <@navbar 'page' />
+
<@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> + +
- +
<#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