<%- include('../partials/header') %>
<% let type = ''; %>
<% posts.map((post) => { %> <% if(post.tag === type) { %>

<%= post.title %>

...

<%- post.body.substring(0, 300) %>...

<% } else { %>
<% } %> <% }) %>

Posts by tag

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