{{ define "main" }}
  {{ $docs := (where .Site.RegularPages "Section" "docs").ByWeight }}
  <div class="retro-home section-layout">
    <section class="pane pane-large">
      <div class="pane-bar">
        <span>NAME</span>
        <span>{{ .Params.manual }}</span>
      </div>
      <div class="pane-body">
        <p class="line-label">NAME</p>
        <h1>{{ .Params.name }}</h1>
        <p class="one-liner">{{ .Params.one_liner }}</p>

        <p class="line-label">SYNOPSIS</p>
        <ul class="key-value install-list">
          <li>
            <span>{{ .Params.install_command }}</span>
          </li>
        </ul>

        <p class="line-label">DESCRIPTION</p>
        <p>{{ .Params.description_body }}</p>
      </div>
    </section>

    <aside class="pane pane-sidebar">
      <div class="pane-bar">
        <span class="pane-icon" title="manual index">󰪷</span>
      </div>
      <div class="pane-body">
        <ul class="index-list">
          <li><a href="/evaluations/">evals/</a></li>
          <li><a href="/docs/">docs/</a></li>
          {{ range $docs }}
            <li><a href="{{ .RelPermalink }}">{{ if eq .Title "clnkr" }}man clnkr{{ else if eq .Title "clankerval" }}man clankerval{{ else }}{{ .Title }}{{ end }}</a></li>
          {{ end }}
        </ul>
        <div class="mascot-block">
          <img class="mascot" src="/mascot.png" alt="Pixel-art clnkr mascot">
        </div>
      </div>
    </aside>
  </div>
{{ end }}
