Added locale (english only at the moment) and modifed the EJS so I think
every string is customisable (via the /locales/selected locale)
This commit is contained in:
@@ -10,11 +10,13 @@
|
||||
</div>
|
||||
<div id="posts">
|
||||
<% for (let index = posts.length - 1; index >= 0; index--) { %>
|
||||
<% posts[index].tags.forEach((current_tag, tag_index) => { %>
|
||||
<% if (current_tag == tag) { %>
|
||||
<%- include('../posts/tag', {post: posts[index], postID: index}); %>
|
||||
<% } %>
|
||||
<% }) %>
|
||||
<% if ( posts[index].deleted != true) { %>
|
||||
<% posts[index].tags.forEach((current_tag, tag_index) => { %>
|
||||
<% if (current_tag == tag) { %>
|
||||
<%- include('../posts/tag', {post: posts[index], postID: index}); %>
|
||||
<% } %>
|
||||
<% }) %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</div>
|
||||
<footer>
|
||||
|
@@ -9,6 +9,7 @@
|
||||
<%- include('../headers/timeline'); %>
|
||||
</div>
|
||||
<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/>
|
||||
|
Reference in New Issue
Block a user