add file uploads

This commit is contained in:
biglyderv 2025-02-26 20:17:33 -05:00
parent 93027bfd09
commit 2c480909ee
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
6 changed files with 42 additions and 7 deletions

View file

@ -6,7 +6,13 @@
Context
<% } %>
</h1>
<div><%= content %></div>
<% for (let contentN of content) { %>
<% if (contentN[0] == 'file' && contentN [1]) { %>
<img class='art' src='<%= new URL(contentN[1], 'https://tbg.dervland.net/') %>'>
<% } else { %>
<div class='commentbox'><%= contentN[0] %></div>
<% } %>
<% } %>
<% if (!isNaN(date * 1)) { %>
<div class='sub'><b>Posted on</b> <%= new Date(date).toISOString() %> </div>
<% } %>