-
Notifications
You must be signed in to change notification settings - Fork 53
/
archives.ftl
62 lines (60 loc) · 3.69 KB
/
archives.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
<@layout.extends name="module/macro.ftl">
<@layout.put block="title">${settings.achieve_title!'归档'} - ${blog_title!}</@layout.put>
<@layout.put block="content">
<div id="page" class="site">
<main class="site-main" id="main">
<div class="site-content">
<header class="bg-cover page-header">
<#if settings.archives_patternimg?? && settings.archives_patternimg!=''>
<div class="cover-bg">
<img src="${settings.archives_patternimg!}" alt="${settings.achieve_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.achieve_title!'归档'}</h1>
</div>
</div>
</header>
<@postTag method="archiveMonth">
<div id="post-list" class="post-list inner" style="padding-top: 30px;margin-bottom: 30px;">
<#list archives as archive>
<article class="post">
<!-- post-header -->
<header class="post-header" style="margin-bottom: 0 !important;">
<div class="post-header-wrap">
<div class="post-meta">
<time class="published published-txt" style="font-weight: bolder;"
datetime="{archive.year?c}">
${archive.year?c}年${archive.month!}月
</time>
</div>
<div class="post-title archives-list" style="margin-bottom: 0 !important;">
<#list archive.posts?sort_by("createTime")?reverse as post>
<div class="read-more">
<a class="button" href="${post.fullPath!}" data-ajax>
${post.createTime?string('MM-dd')} ${post.title!}
<span aria-hidden="true"></span>
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</a>
</div>
</#list>
</div>
</div>
</header>
</article>
</#list>
</div>
</@postTag>
</div>
</main>
</div>
</@layout.put>
</@layout.extends>