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