ejs stuff
This commit is contained in:
21
views/posts/tag.ejs
Normal file
21
views/posts/tag.ejs
Normal file
@@ -0,0 +1,21 @@
|
||||
<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 %>
|
||||
|
Reference in New Issue
Block a user