<%- include('../partials/header') %>

<%= account.toUpperCase() %>

<%= post.title %>

...

<%- post.body %>

<% if(currentUser && post.author.id.equals(currentUser._id)) { %> Edit
<% } %> <% post.comments.map((comment) => { %>
<%= comment.author.username.toUpperCase() %>:

<%- comment.text %>

<% if(currentUser && comment.author.id.equals(currentUser._id)) { %>
Edit
<% } %>
<% }) %> Add a comment
<%- include('../partials/footer') %>