<% if (query.length > 0 && query.length < 3) { %>
You need to search for 3 or more characters
<% } else if (query.length > 3) { %>
People
<% if (people.length == 0) { %>
No results found
<% } %>
<% people.map(person => { %>
<%= person.content.name %>
<% }) %>
Communities
<% if (communities.length == 0) { %>
No results found
<% } %>
<% communities.map(community => { %>
#<%= community %>
<% }) %>
<% } %>