<%- include('../partials/head', { pageType: 'search' }) %>

Search

<% (recommended.dynamicPills || []).forEach(pill => { %> <% }) %> <% (recommended.customPills || []).forEach(pill => { %> <% }) %>
<% if (query) { %>
<%= searchData.total %> result<%= searchData.total === 1 ? '' : 's' %> for "<%= query %>"
<% if (searchData.results.length > 0) { %>
<% searchData.results.forEach(res => { %>

<%= res.post.title %>

— by <%= res.post.author %> <% if (res.post.category) { %> in <%= res.post.category %> <% } %>
<% if (res.snippet) { %>

<%- res.snippet %>

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

No articles found matching your query.

<% } %>
<% } %>
<%- include('../partials/foot', { pageType: 'search' }) %>