forked from halo-dev/halo-theme-hshan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
photos.ftl
60 lines (60 loc) · 2.99 KB
/
photos.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<@layout.extends name="module/macro.ftl">
<@layout.put block="title">${settings.photos_title!'相册'} - ${blog_title!}</@layout.put>
<@layout.put block="head">
<#include "./module/viewer/libs-import.ftl" />
</@layout.put>
<@layout.put block="content">
<div id="page" class="site">
<main class="site-main" id="main">
<div class="site-content photos-page">
<header class="bg-cover page-header">
<#if settings.photos_patternimg?? && settings.photos_patternimg!=''>
<div class="cover-bg">
<img src="${settings.photos_patternimg!}" alt="${settings.photos_title!'相册'}">
</div>
<#else>
<div class="default-cover-bg"
>
</div>
</#if>
<div class="cover-content">
<div class="inner">
<div class="post-count"></div>
<h1 class="page-title" style="font-size: 46px;">${settings.photos_title!'相册'}</h1>
</div>
</div>
</header>
<div class="photos-box article-content" id="gallery-content">
<@photoTag method="listTeams">
<#list teams as item>
<#if item.team?? && item.team!=''>
<h3 style="width: 100%; margin: 10px;">${item.team}</h3>
</#if>
<div class="justified-gallery">
<#list item.photos as photo>
<a class="gallery-item jg-entry entry-visible"
href="javascript:void(0)" data-not-pjax>
<img src="${photo.url!}" data-src="${photo.url!}" alt="${photo.name!}"/>
<p class="has-text-centered is-size-6 caption">${photo.name}</p>
</a>
</#list>
</div>
</#list>
</@photoTag>
</div>
</div>
</main>
</div>
</@layout.put>
<@layout.put block="footer">
<#include "./module/justifiedGallery/libs-import.ftl" />
<#include "./module/justifiedGallery/scripts.ftl" />
<script>
document.addEventListener('DOMContentLoaded', function () {
new Viewer(document.getElementById('gallery-content'), {
toolbar: true,
});
});
</script>
</@layout.put>
</@layout.extends>