{{ define "search.gohtml" }}{{ template "base" . }}{{ end }}

{{ define "search_content" }}
<section class="workspace-shell workspace-shell--empty">
  <section class="search-panel">
    <p class="eyebrow">Search Results</p>
    <h1>{{ .Query }}</h1>
    <p class="lede">{{ len .Results }} document{{ if ne (len .Results) 1 }}s{{ end }} found</p>

    {{ if .Results }}
      <ul class="search-results">
        {{ range .Results }}
          <li>
            <a href="/docs/{{ trimMd .Path }}">
              <span class="search-result-title">{{ .Title }}</span>
              <span class="search-result-path">{{ .Path }}</span>
            </a>
          </li>
        {{ end }}
      </ul>
    {{ else }}
      <p>No documents found matching your search.</p>
    {{ end }}
  </section>
</section>
{{ end }}
