jabe/default_templates/index.ejs

25 lines
669 B
Text
Raw Normal View History

<%- 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)}) %>
<% 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>
<% } %>
</div>
2024-03-29 10:52:09 +01:00
<style>
#main-content {
font-size: 15px;
}
</style>
<%- include('global-style'); %>
<%- include('footer') %>