{{ define "base" }}
<!DOCTYPE html>
<html lang="de">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/unpoly@3.9.5/unpoly.min.css">
    <body>

    <nav class="navbar sticky-top bg-dark">
      <div class="container-fluid">
        <a class="navbar-brand text-light">crowsnest</a>
        <form class="d-flex" role="search" method="post" action="/up/search" up-submit up-autosubmit up-target=".content">
          <input name="search" class="form-control me-2" type="search" placeholder="Suche" aria-label="Suche">
          <button class="btn btn-outline-success" type="submit">Suchen</button>
        </form>
      </div>
    </nav>
    
    {{ template "content" . }}

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/unpoly@3.9.5/unpoly.min.js"></script>
    </body>
</html>
{{ end }}
