2024-03-28 19:33:58 +01:00
|
|
|
<%- include('header') %>
|
|
|
|
<div id="main-content">
|
2024-03-29 13:43:01 +01:00
|
|
|
<table id="posts-table">
|
2024-03-29 10:52:09 +01:00
|
|
|
<!---
|
|
|
|
<tr>
|
|
|
|
<th id="title-header">Title</th>
|
|
|
|
<th id="date-header">Last Edited</th>
|
|
|
|
</tr>
|
|
|
|
--->
|
|
|
|
<% posts = posts.sort((a,b) => {return new Date(b.metadata.mtime) - new Date(a.metadata.mtime)}) %>
|
2024-03-28 19:33:58 +01:00
|
|
|
<% for(const post of posts) { %>
|
2024-03-29 10:52:09 +01:00
|
|
|
<tr>
|
|
|
|
<td class="post-item"><a class="post" href="/post/<%= post.file %>"><%= post.title %></a></td>
|
|
|
|
<td class="date-item"><%= new Date(post.metadata.mtime).toDateString() %></td>
|
|
|
|
</tr>
|
2024-03-28 19:33:58 +01:00
|
|
|
<% } %>
|
|
|
|
</div>
|
2024-03-29 10:52:09 +01:00
|
|
|
<style>
|
|
|
|
#main-content {
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
</style>
|
2024-03-28 19:33:58 +01:00
|
|
|
<%- include('global-style'); %>
|
|
|
|
<%- include('footer') %>
|