<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>Marginalia Search - {{query}}</title>

    <link rel="stylesheet" href="/serp.css" />
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Marginalia">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="robots" content="noindex" />
</head>

<body data-filter="{{filters.currentFilter}}">

{{#if newFilter}} <div class="screenreader-only" aria-role="status">Search Filters Updated</div> {{/if}}

<!-- Hi there, fellow human being :-) -->

{{>search/parts/search-header}}
{{>search/parts/search-form}}


<span id="content-start"></span>

<section class="sidebar-narrow">
    <section id="results" class="sb-left">
        {{#if focusDomain}}
            <div class="infobox">
                Showing search results from <a href="/site/{{focusDomain}}">{{focusDomain}}</a>.
            </div>
        {{/if}}

        {{#unless results}}
            <div class="infobox">
                No search results found.  If you believe this is an error, consider either
                <a href="https://github.com/MarginaliaSearch/MarginaliaSearch/issues">submitting an issue on GitHub</a>,
                or sending an email to <a href="mailto:kontakt@marginalia.nu">kontakt@marginalia.nu</a> describing
                the problem.
            </div>
        {{/unless}}

        {{#unless focusDomain}}
            <div class="infobox screenreader-only">
                Showing {{resultCount}} search results.
            </div>
        {{/unless}}
        {{#each results}}
            {{#if hasMultiple}}
                {{>search/parts/search-result-rest}}
            {{else}}
            {{#with first}}
                {{>search/parts/search-result}}
            {{/with}}
            {{/if}}
        {{/each}}

        {{#if multipage}}
        <nav aria-label="pagination">
        {{#each resultPages}}
            <a {{#unless current}}href="{{{href}}}"{{/unless}} class="page-link {{#if current}}active{{/if}}">{{number}}</a>
        {{/each}}
        </nav>
        {{/if}}
    </section>

    {{#with filters}}
    <section id="filters" class="sb-right">
        {{>search/parts/search-filters}}
    </section>
    {{/with}}

</section>
{{>search/parts/search-footer}}
</body>
</html>