jabe/data/default_templates/index.ejs
hexlocation's laptop (asiago) 57016f4f3f doing stuff l8r
2024-03-29 09:15:24 -04:00

24 lines
669 B
Text

<%- include('header') %>
<div id="main-content">
<table id="posts-table">
<!---
<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) { %>
<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>
<style>
#main-content {
font-size: 15px;
}
</style>
<%- include('global-style'); %>
<%- include('footer') %>