generated from songquanpeng/blog-theme-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.ejs
46 lines (45 loc) · 1.81 KB
/
list.ejs
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
<%- include('./partials/header') %>
<div class="main">
<div class="wrapper">
<div class="middle-col">
<div class="main-content box" style="border-bottom: 0">
<div class="header"><a href="/">Home</a> <span class="chevron"> › </span> <%= title %></div>
<div class="cell">
<table class="table is-fullwidth is-hoverable is-bordered is-striped">
<thead>
<tr>
<th>Title</th>
<th>Post Time</th>
</tr>
</thead>
<tbody>
<% pages.sort((a,b) => (a.createdAt > b.createdAt) ? 1 : ((b.createdAt > a.createdAt) ? -1 : 0)).forEach(page => { %>
<tr>
<td>
<a href="/page/<%= page.link %>">
<%= page.title %>
</a>
</td>
<td>
<time>
<%= page.createdAt.substring(0, 10) %>
</time>
</td>
</tr>
<% }) %>
</tbody>
</table>
</div>
<div class="bottom">
<a href="">Share</a>
<a href="">Ignore</a>
<a href="">Thank</a>
</div>
</div>
</div>
<div class="right-bar">
<%- include('./partials/panel') %>
</div>
</div>
</div>
<%- include('./partials/footer') %>