24 lines
663 B
Plaintext
24 lines
663 B
Plaintext
<h3>
|
|
<%= post.title %>
|
|
</h3>
|
|
<%- converter.makeHtml(post.content) %><br/>
|
|
<a href="/post/<%- index %>">Permalink</a><br/>
|
|
<i>
|
|
By <a href="/user/<%= user.username %>"><%= user.username %></a><br/>
|
|
</i>
|
|
|
|
<!-- Comment form -->
|
|
<form method="POST" action="/submit_comment">
|
|
<input type="hidden" name="post_index" value="<%= index %>">
|
|
<input placeholder="username" name="name"><br/>
|
|
<textarea placeholder="comment" name="content"></textarea><br/>
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
|
|
<% comments[index].forEach((comment, index) => { %>
|
|
<%- include('../partials/comment', {comment: comment}) %>
|
|
<% }) %>
|
|
|
|
<%- config.seperator %>
|
|
|