-
<% if(!currentUser) { %>
- Search for blog posts
- About
- Minimal browsers <% } else { %>
- My Blog
- Create a blog post
- Search for blog posts
- About
- Minimal browsers <% } %>
<%= account.toUpperCase() %>
<%= post.title %>
<%- post.body %>
<% if(currentUser && post.author.id.equals(currentUser._id)) { %> Edit <% } %> <% post.comments.map((comment) => { %> Add a comment
<%= comment.author.username.toUpperCase() %>:
<%- comment.text %>
<% if(currentUser && comment.author.id.equals(currentUser._id)) { %>