-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patharchives.html
35 lines (32 loc) · 859 Bytes
/
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
<div id="loading"></div>
<div class="page-content cuckoo" style="display: none" id="body">
<div class="wrapper">
<div class="home">
<ul class="post-list">
{% for p in posts %}
<div class="post-items">
<li>
<p>
<span class="post-time">{{ p.dateGTM }}</span> -
<a href="{{ p.url }}" class="post-link">{{ p.title }}</a>
</p>
</li>
</div>
{% /for %}
</ul>
</div>
</div>
</div>
<script src="asset/jquery-3.3.1.min.js"></script>
<script src="asset/utils.js"></script>
<script>
$(document).ready(function() {
$('.post-time').each(function() {
let parsedTime = parseTime($(this).text()).slice(0, 10)
$(this).text(parsedTime)
})
$('#loading').hide()
$('#body').show()
$('#footer').show()
})
</script>