-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchives.html
42 lines (41 loc) · 1.49 KB
/
archives.html
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
#include('./partial/header.html', {title: '文章归档'})
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<div class="post-block archive">
<div id="posts" class="posts-collapse">
<span class="archive-move-on"></span>
<span id="archive-number" class="archive-page-counter">
</span>
#for(archive : archives)
<div class="collection-title">
<h1 class="archive-year" id="archive-year-${fmtdate(archive.date, 'yyy')}">${fmtdate(archive.date, 'yyy')}</h1>
</div>
#for(article : archive.articles)
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h2 class="post-title">
<a class="post-title-link" href="${(permalink())}" itemprop="url">
<span itemprop="name">${title()}</span>
</a>
</h2>
<div class="post-meta">
<time class="post-time" itemprop="dateCreated" content="${created('yyyy-MM-dd')}" >
${created('MM-dd')}
</time>
</div>
</header>
</article>
#end
#end
</div>
</div>
</div>
</div>
#include('./partial/sidebar.html')
#include('./partial/footer.html')
<script type="text/javascript">
var num=$(".post-title").length;
document.getElementById("archive-number").innerHTML = "嗯..! 目前共计" + num + "篇日志。 继续努力。";
</script>