Comments now have their own pages, at /comment/commentID, these are

linked to when someone replies to another comment (>> id), I also fixed
a bug in comment submission where the counter was not incrementing
This commit is contained in:
2025-07-31 03:58:28 +01:00
parent 0cc319a702
commit b683b658f7
7 changed files with 64 additions and 5 deletions

11
views/pages/comment.ejs Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<%- include('../partials/head'); %>
</head>
<body>
<div id="comment">
<%- include("../partials/comment"); %>
</div>
</body>
</html>

View File

@@ -1,2 +1,3 @@
<b><%= comment.name %></b> <%= func.unix_time_to_date_format(comment.pubdate) %> <i>No. <%= comment.id %></i>:<br/>
<%= comment.content %>
<%- func.render_comment(comment.content) %>
<br/>