forked from xzhuz/halo-theme-xue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
photos.ftl
65 lines (65 loc) · 2.75 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
61
62
63
64
65
<#include "module/macro.ftl">
<@layout title="相册 | ${options.blog_title!}">
<main class="mx-auto" id="container">
<header class="bg-cover post-cover">
<#if settings.photos_patternimg?? && settings.photos_patternimg!=''>
<div class="cover-bg">
<img src="${settings.photos_patternimg!}" class="z-auto"
alt="${settings.photos_title!'相册'}">
</div>
<#else>
<div class="placeholder-bg">
</div>
</#if>
<div class="cover-content flex justify-center">
<!-- 封面内容 -->
<div class="inner flex flex-col justify-center">
<p class="cover-title text-base md:text-4xl lg:text-4xl xl:text-5xl">${settings.photos_title!'Photos'}</p>
</div>
</div>
</header>
<div
class="container mx-auto px-4 mt-16 tracking-wider md:leading-relaxed sm:leading-normal cn-pd photos-page content-container">
<div class="photos-box article-content" id="gallery-content">
<nav id="gallery-filter">
<ul>
<li>
<a href="javascript:void(0);" data-filter="*" class="active">全部</a>
</li>
<@photoTag method="listTeams">
<#list teams as item>
<li>
<a href="javascript:void(0);"
data-filter=".${((item.team)?length>0)?string((item.team),'默认')}">${((item.team)?length>0)?string((item.team),'默认')}</a>
</li>
</#list>
</@photoTag>
</ul>
</nav>
<div class="gallery masonry-gallery">
<@photoTag method="list">
<#list photos?sort_by('name')?reverse as photo>
<figure class="gallery-item col-3 ${((photo.team)?length>0)?string((photo.team),'默认')}">
<header class="gallery-icon">
<a data-fancybox="gallery" href="javascript:void(0);">
<img class="lazyload" src="${theme_base!}/source/images/loading.svg" data-src="${photo.url!}"
alt="${photo.name!}"/>
</a>
</header>
<figcaption class="gallery-caption">
<div class="entry-summary">
<h3>${photo.name}</h3>
<#if photo.description?? && photo.description != "">
<p>${photo.description!}</p>
</#if>
</div>
</figcaption>
<p class="name" style="display: none">${photo.name}</p>
</figure>
</#list>
</@photoTag>
</div>
</div>
</div>
</main>
</@layout>