and the footer was a footer type with no id, so now they are both both. Also added some margins at the top and bottom of the page in CSS
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<%- include('../partials/head'); %>
|
|
</head>
|
|
<body>
|
|
<header id="header">
|
|
<%- include("../headers/site_wide") %>
|
|
<%- include('../headers/timeline'); %>
|
|
</header>
|
|
<form method="POST" action="/submit_nothing" style="display:none">
|
|
<!-- Form is used to help mitigate spam as it is the first form on the front page -->
|
|
<input type="hidden" name="post_index" value="0">
|
|
<input placeholder="username" name="name"><br/>
|
|
<textarea placeholder="comment" name="content"></textarea><br/>
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
<div id="posts">
|
|
<% for (let index = posts.length - 1; index >= 0; index--) { %>
|
|
<% if (posts[index]["deleted"] != true) { %>
|
|
<%- include('../posts/timeline', {post: posts[index], postID: index, user: users[posts[index].userID], comments: comments[index]}); %>
|
|
<% } %>
|
|
<% } %>
|
|
</div>
|
|
<form method="POST" action="/submit_nothing" style="display:none">
|
|
<!-- Form is used to help mitigate spam as it is the last form on the front page -->
|
|
<input type="hidden" name="post_index" value="0">
|
|
<input placeholder="username" name="name"><br/>
|
|
<textarea placeholder="comment" name="content"></textarea><br/>
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
<footer id='footer'>
|
|
<%- include('../partials/footer'); %>
|
|
</footer>
|
|
</body>
|
|
</html>
|