{{ define "main" }}

<section class="mt-5 py-4">
  <div class="container-fluid">
    <div class="row justify-content-center">
      <div class="col-lg-8">
        <h2 class="mb-5 fw-medium">Search result for
          <span class="text-primary">
            <script>
              var str = (window.location.search).substr(3);
              var result = str.replaceAll("+", " ");
              document.write(decodeURI(result));
            </script>
          </span>
        </h2>
        <div class="p-5 shadow rounded">
          <div id="search-results"></div>
          <script id="search-result-template" type="text/x-js-template">
            <div class="py-4 search-item" id="summary-${key}">
            <a class="h4 mb-0" href="${link}">${title}</a>
          </div>
        </script>
        </div>
      </div>
    </div>
  </div>
</section>

{{ end }}