Add the theme

This commit is contained in:
Bashy 2025-11-09 21:24:34 +01:00
parent cff7000285
commit 142a478a6a
21 changed files with 663 additions and 1 deletions

View file

@ -0,0 +1,11 @@
<div class="date smoll">
<%
const posted = new Date(date);
const now = new Date();
const year = 365 * 24 * 60 * 60 * 1000;
const format = (now - posted) < year ?
{ day: 'numeric', month: 'long', hour: 'numeric', minute: 'numeric', hour12: true } :
{ day: 'numeric', month: 'long', year: 'numeric', hour: 'numeric', minute: 'numeric', hour12: true };
%>
<%= posted.toLocaleString('en-US', format ) %>
</div>