<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Encyclopedia Search: {{query}}</title>
    <link rel="stylesheet" href="https://www.marginalia.nu/style.css" />
    <link rel="stylesheet" href="https://search.marginalia.nu/style.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
    <nav>
        <a href="https://encyclopedia.marginalia.nu/wiki-clean.html">About</a>
    </nav>
</header>
<article>
    <h1>Search the Encyclopedia</h1>
    <section class="search-box">
        <form method="get" action="/wiki-search">
            <input name="query" placeholder="Search terms" style="width: 75%" value="{{query}}">
            <input value="Go" type="submit">
        </form>
    </section>
 <h1>Search results</h1>
 {{#if error}}
 <div class="headline">Failed to find exact article match</div>
 {{/if}}
 <dl>
 {{#each results}}
    <dt><a href="{{url}}">{{name}}</a></dt>
    {{#if refName}}<dd>{{refName}}</dd>{{/if}}
 {{/each}}
 </dl>
</article>
</body>