<% var permaLink = (window.location.origin + '/' + window.location.pathname + '/data/posts/' + post.name).replace(/([^:])\/+/g, '$1/') %>
<%= postEditTemplate({post: post, privileges: editPrivileges}) %>
<%= postContentTemplate({post: post}) %> <% if (privileges.canViewHistory) { %>
<%= historyTemplate({ history: postHistory, formatRelativeTime: formatRelativeTime }) %>
<% } %>