add file uploads
This commit is contained in:
parent
93027bfd09
commit
2c480909ee
6 changed files with 42 additions and 7 deletions
|
@ -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>
|
||||
<% } %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue