2019-10-02 16:15:37 +00:00
|
|
|
<#include "./layout/common/navbar.ftl">
|
2020-04-24 08:19:10 +00:00
|
|
|
<#include "./layout/common/head.ftl">
|
2019-10-02 16:15:37 +00:00
|
|
|
<!DOCTYPE html>
|
2020-04-07 04:06:43 +00:00
|
|
|
<html lang="zh-CN">
|
2019-10-02 16:15:37 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
|
2020-04-24 08:19:10 +00:00
|
|
|
<title>${options.photos_title!} - ${blog_title!}</title>
|
2019-10-02 16:15:37 +00:00
|
|
|
|
2020-03-27 10:31:36 +00:00
|
|
|
<meta name="keywords" content="${meta_keywords!}"/>
|
2020-04-24 08:19:10 +00:00
|
|
|
<meta name="description" content="${meta_description!}"/>
|
|
|
|
<meta property="og:type" content="website"/>
|
|
|
|
<meta property="og:title" content="${options.photos_title!}"/>
|
|
|
|
<meta property="og:site_name" content="${options.photos_title!}"/>
|
|
|
|
<meta property="og:description" content="${meta_description!}"/>
|
|
|
|
<meta property="og:locale" content="zh-CN"/>
|
|
|
|
<meta property="og:image" content="${user.avatar!}"/>
|
|
|
|
<meta name="twitter:card" content="summary"/>
|
|
|
|
<meta name="twitter:title" content="${options.photos_title!}"/>
|
|
|
|
<meta name="twitter:description" content="${meta_description!}"/>
|
|
|
|
<meta name="twitter:image" content="${user.avatar!}"/>
|
2019-10-02 16:15:37 +00:00
|
|
|
|
|
|
|
<link rel="canonical" href="${canonical!}"/>
|
|
|
|
|
2020-04-24 08:19:10 +00:00
|
|
|
<link rel="alternative" href="${atom_url!}" title="${blog_title!}" type="application/atom+xml"/>
|
2019-10-02 16:15:37 +00:00
|
|
|
|
|
|
|
<@global.head />
|
|
|
|
|
2020-04-24 08:19:10 +00:00
|
|
|
<link rel="stylesheet" href="${settings.cdn_bulma_css!}"/>
|
|
|
|
<link rel="stylesheet" href="${settings.cdn_fontawesome_css!}"/>
|
2019-10-14 14:27:49 +00:00
|
|
|
<#include "layout/plugin/style.theme.ftl">
|
2019-10-11 15:43:31 +00:00
|
|
|
|
2020-04-24 08:19:10 +00:00
|
|
|
<link rel="stylesheet" href="${theme_base!}/source/css/style.css"/>
|
|
|
|
<link rel="stylesheet" href="${theme_base!}/source/css/bundle.css"/>
|
|
|
|
<link rel="stylesheet" href="${theme_base!}/source/css/back-to-top.css"/>
|
|
|
|
<link rel="stylesheet" href="${theme_base!}/source/lib/lg/css/lightgallery.css"/>
|
2019-10-02 16:15:37 +00:00
|
|
|
</head>
|
|
|
|
<body class="is-3-column">
|
|
|
|
<@navbar 'page' />
|
2019-10-07 15:52:42 +00:00
|
|
|
<section class="section photos">
|
2020-04-24 08:19:10 +00:00
|
|
|
<div class="container">
|
2019-10-16 15:25:57 +00:00
|
|
|
<@photoTag method="listTeams">
|
|
|
|
<#list teams as item>
|
2020-04-24 08:19:10 +00:00
|
|
|
<h3 class="level title is-3">${item.team!}</h3>
|
|
|
|
<div class="columns is-multiline" id="view_${item.team!}">
|
|
|
|
<#list item.photos?sort_by('takeTime')?reverse as photo>
|
|
|
|
<#if photo_index gte options.photos_page_size>
|
|
|
|
<#break>
|
|
|
|
</#if>
|
|
|
|
<div class="column is-one-quarter-desktop is-half-tablet" style="margin-bottom: 40px;">
|
2020-02-29 09:32:58 +00:00
|
|
|
<div class="card" style="width: 100%">
|
2019-10-16 15:25:57 +00:00
|
|
|
<div class="card-image">
|
|
|
|
<figure class="image">
|
2020-04-24 08:19:10 +00:00
|
|
|
<a href="${photo.url!}" class="show" title="${photo.name!}" >
|
|
|
|
<img src="${photo.thumbnail!}"
|
|
|
|
data-src="${photo.thumbnail!}"
|
|
|
|
alt="${photo.takeTime!?string('yyyy.MM.dd')} - ${photo.name!}">
|
2019-10-16 15:25:57 +00:00
|
|
|
</a>
|
|
|
|
</figure>
|
2020-04-24 08:19:10 +00:00
|
|
|
<#--<div class="card-content is-overlay is-clipped">
|
|
|
|
<span class="tag is-info">
|
|
|
|
${photo.name}
|
|
|
|
</span>
|
|
|
|
</div>-->
|
2019-10-16 15:25:57 +00:00
|
|
|
</div>
|
2020-04-24 08:19:10 +00:00
|
|
|
<footer class="card-footer" style="background-color: #fff; height: 64px; overflow-y: hidden;">
|
|
|
|
<a class="card-footer-item">
|
|
|
|
<#if photo.name?? && photo.name != '' && photo.name?length gt 50 >
|
|
|
|
${photo.takeTime!?string('yyyy.MM.dd')} - ${photo.name!?substring(0,50)}
|
|
|
|
<#else>
|
|
|
|
${photo.takeTime!?string('yyyy.MM.dd')} - ${photo.name!}
|
|
|
|
</#if>
|
|
|
|
</a>
|
|
|
|
</footer>
|
2019-10-07 15:52:42 +00:00
|
|
|
</div>
|
2019-10-16 15:25:57 +00:00
|
|
|
</div>
|
|
|
|
</#list>
|
|
|
|
</div>
|
|
|
|
</#list>
|
|
|
|
</@photoTag>
|
2020-04-24 08:19:10 +00:00
|
|
|
</div>
|
2019-10-02 16:15:37 +00:00
|
|
|
</section>
|
|
|
|
<#include "./layout/common/footer.ftl">
|
2019-10-07 15:52:42 +00:00
|
|
|
<#include "./layout/plugin/back-to-top.ftl">
|
|
|
|
|
2019-10-02 16:15:37 +00:00
|
|
|
</body>
|
2020-03-27 10:31:36 +00:00
|
|
|
<script src="${theme_base!}/source/lib/lg/js/lightgallery.min.js"></script>
|
|
|
|
<script src="${theme_base!}/source/lib/lg/js/lg-thumbnail.min.js"></script>
|
|
|
|
<script src="${theme_base!}/source/lib/lg/js/lg-fullscreen.min.js"></script>
|
2019-10-07 15:52:42 +00:00
|
|
|
<script>
|
2019-10-16 15:25:57 +00:00
|
|
|
var views = []
|
|
|
|
<@photoTag method="listTeams">
|
|
|
|
<#list teams as item>
|
|
|
|
views.push('view_${item.team}')
|
|
|
|
</#list>
|
|
|
|
</@photoTag>
|
|
|
|
views.forEach(function (value) {
|
|
|
|
var lg = document.getElementById((value));
|
|
|
|
lightGallery(document.getElementById((value)), {
|
|
|
|
mode: 'lg-slide',
|
|
|
|
cssEasing: 'ease',
|
|
|
|
speed: 500,
|
|
|
|
thumbnail: true,
|
|
|
|
animateThumb: true,
|
|
|
|
showThumbByDefault: true,
|
|
|
|
autoplay: true,
|
|
|
|
progressBar: true,
|
|
|
|
selector: '.show'
|
|
|
|
});
|
|
|
|
})
|
2019-10-07 15:52:42 +00:00
|
|
|
</script>
|
|
|
|
<style>
|
2019-10-16 15:25:57 +00:00
|
|
|
.card {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.card-image {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image {
|
|
|
|
height: 100%;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
.image img{
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
#animated-thumbnail a {
|
2019-10-07 15:52:42 +00:00
|
|
|
display: block;
|
2019-10-16 15:25:57 +00:00
|
|
|
padding: 5px;
|
2019-10-07 15:52:42 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
2019-10-16 15:25:57 +00:00
|
|
|
#animated-thumbnail a {
|
2019-10-07 15:52:42 +00:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2019-10-16 15:25:57 +00:00
|
|
|
#animated-thumbnail a:hover img {
|
2019-10-07 15:52:42 +00:00
|
|
|
transform: scale(1.01);
|
|
|
|
}
|
|
|
|
|
2019-10-16 15:25:57 +00:00
|
|
|
#animated-thumbnail a img {
|
2019-10-07 15:52:42 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
</style>
|
2019-10-02 16:15:37 +00:00
|
|
|
</html>
|