Added page indexes for comments, posts, users and pages overall, should

add one for tags but it might be inefficient as I don't store all tags
in an array or anything...
This commit is contained in:
2025-08-02 00:51:33 +01:00
parent 5f2aba0c2b
commit 8b9ddcf048
7 changed files with 115 additions and 0 deletions

13
views/indexes/posts.ejs Normal file
View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="<%= config.charset %>">
<head>
<%- include("../partials/head") %>
</head>
<body>
<% for (let postID = 0; postID < posts.length; postID++) { %>
<% if (posts[postID]["deleted"] != true) { %>
<a href="/post/<%= postID %>"><%= posts[postID]["title"] %></a><br/>
<% }; %>
<% }; %>
</body>
</html>