-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcategory.html
48 lines (46 loc) · 1.82 KB
/
category.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
43
44
45
46
47
48
<div id="loading"></div>
<div class="page-content cuckoo" id="body" style="display: none">
<div class="wrapper">
<div class="home">
<div class="divider">
<p></p>
</div>
<ul class="entry-list">
{% for p in posts %}
<li class="entry-item" itemscope="" itemtype="http://schema.org/Article">
<div class="entry-detail">
<h2 itemprop="name" class="entry-title"><a itemprop="url" href="{{ p.url }}">{{ p.title }}</a></h2>
<div class="entry-meta">
<time class="entry-updated-time" datetime="{{ p.date }}">{{ p.dateGTM }}</time>
</div>
<div itemprop="description" class="entry-description">
{% if p.ext_excerpt.length %}
{{ p.ext_excerpt }}
{% /if %}
</div>
</div>
</li>
{% /for %}
</ul>
<p class="paging">
{% if prevPageUrl.length %}
<a href="{{ prevPageUrl }}">Previous</a> {% if nextPageUrl.length %}        {% /if%}
{% /if %} {% if nextPageUrl.length %}
<a href="{{ nextPageUrl }}">Next</a> {% /if %}
</p>
</div>
</div>
</div>
<script src="asset/jquery-3.3.1.min.js"></script>
<script src="asset/utils.js"></script>
<script>
$(document).ready(function() {
$('.entry-updated-time').each(function() {
let parsedTime = parseTime($(this).text()).slice(0, 10)
$(this).text(parsedTime)
})
$('#loading').hide()
$('#body').show()
$('#footer').show()
})
</script>