24 lines
779 B
Plaintext
24 lines
779 B
Plaintext
<h3>
|
|
<%= post.title %>
|
|
</h3>
|
|
<%- func.render_md(post.content) %><br/>
|
|
<a href="<%= config.edit_post_base_url %>/<%= postID %>"><%= locale.edit_post %></a><br/>
|
|
<a href="/post/<%- postID %>"><%= locale.permalink %></a><br/>
|
|
<%- func.hyperlink_tags(post.tags) %>
|
|
<br/>
|
|
|
|
<!-- Comment form -->
|
|
<form method="POST" action="/submit_comment">
|
|
<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[postID].forEach((comment) => { %>
|
|
<%- include('../partials/comment', {comment: comment}) %>
|
|
<% }) %>
|
|
|
|
<%- config.seperator %>
|
|
|