% const _base = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; %>
<% const _tracks = (typeof tracks !== 'undefined' && tracks) ? tracks : []; %>
Zoeken
<% if (queryError) { %>
Kon die zoekopdracht niet uitvoeren. Probeer een eenvoudiger term.
<% } %>
<% if (query && !queryError) { %>
<%= total %> resulta<%= total === 1 ? 'at' : 'ten' %> voor “<%= query %>”
<% } %>
<% if (_tracks.length) { %>
Nummers
<% _tracks.forEach(function(t) {
const tj = JSON.stringify({ id: t.id, url: t.url, title: t.title, artist: t.artist || '', cover: t.cover || '' })
.replace(/&/g, '&').replace(/'/g, ''').replace(/
<% if (t.cover) { %>
<% } %>
<%= t.title %>
<% if (t.artist || t.album) { %>
<%= t.artist %><% if (t.artist && t.album) { %> · <% } %><%= t.album %>
<% } %>
<% if (t.postUrl) { %>
in post →
<% } %>
<% }); %>
<% } %>
<% if (results && results.length) { %>
<% if (_tracks.length) { %>
Posts
<% } %>
<% results.forEach(function(r) { %>
-
<%= r.author_username %>
<% if (r.published_at) { %> · <%= formatDate(r.published_at) %><% } %>
<%- r.snippet %>
<% }); %>
<% } %>
<% if (query && !queryError && !results.length && !_tracks.length) { %>
Niets gevonden.
<% } %>