* added "quotes" to the locales
* made all the ejs pages use "postID" as the variable for post indexes * split up en-GB and en-US
This commit is contained in:
@@ -2,19 +2,19 @@
|
||||
<%= post.title %>
|
||||
</h3>
|
||||
<%- func.render_md(post.content) %><br/>
|
||||
<a href="<%= config.edit_post_base_url %>/<%= post_index %>"><%= locale.edit_post %></a><br/>
|
||||
<a href="/post/<%- index %>"><%= locale.permalink %></a><br/>
|
||||
<a href="<%= config.edit_post_base_url %>/<%= postID %>"><%= locale.edit_post %></a><br/>
|
||||
<a href="/post/<%- postID %>"><%= locale.permalink %></a><br/>
|
||||
<br/>
|
||||
|
||||
<!-- Comment form -->
|
||||
<form method="POST" action="/submit_comment">
|
||||
<input type="hidden" name="post_index" value="<%= index %>">
|
||||
<input type="hidden" name="post_index" value="<%= postID %>">
|
||||
<label><%= locale.username %>:</label><br/><input name="name"><br/><br/>
|
||||
<label><%= locale.comment %>:</label><br/><textarea name="content"></textarea><br/>
|
||||
<button type="submit"><%= locale.submit %></button>
|
||||
</form>
|
||||
|
||||
<% comments[index].forEach((comment, index) => { %>
|
||||
<% comments[postID].forEach((comment, postID) => { %>
|
||||
<%- include('../partials/comment', {comment: comment}) %>
|
||||
<% }) %>
|
||||
|
||||
|
Reference in New Issue
Block a user