{{ define "main" }}
<div class="docs-wrapper">
  <nav class="docs-sidebar">
    <h3><a href="/docs/">Manual</a></h3>

    <div class="nav-section-title">Guides</div>
    <ul>
      <li><a href="/docs/"{{ if eq .RelPermalink "/docs/" }} class="active"{{ end }}>Overview</a></li>
      <li><a href="/docs/quickstart/"{{ if eq .RelPermalink "/docs/quickstart/" }} class="active"{{ end }}>Quickstart</a></li>
      <li><a href="/docs/tutorial/"{{ if eq .RelPermalink "/docs/tutorial/" }} class="active"{{ end }}>Tutorial</a></li>
    </ul>

    <div class="nav-section-title">Concepts</div>
    <ul>
      <li><a href="/docs/rendering/"{{ if eq .RelPermalink "/docs/rendering/" }} class="active"{{ end }}>Rendering</a></li>
      <li><a href="/docs/graphics/"{{ if eq .RelPermalink "/docs/graphics/" }} class="active"{{ end }}>Graphics</a></li>
      <li><a href="/docs/ops/"{{ if eq .RelPermalink "/docs/ops/" }} class="active"{{ end }}>Compositor</a></li>
      <li><a href="/docs/entities/"{{ if eq .RelPermalink "/docs/entities/" }} class="active"{{ end }}>Entities</a></li>
      <li><a href="/docs/input/"{{ if eq .RelPermalink "/docs/input/" }} class="active"{{ end }}>Input</a></li>
      <li><a href="/docs/resources/"{{ if eq .RelPermalink "/docs/resources/" }} class="active"{{ end }}>Resources</a></li>
      <li><a href="/docs/prosperon/"{{ if eq .RelPermalink "/docs/prosperon/" }} class="active"{{ end }}>About Prosperon</a></li>
    </ul>

    <div class="nav-section-title">API Reference</div>
    <ul>
      <li><a href="/docs/api/"{{ if eq .RelPermalink "/docs/api/" }} class="active"{{ end }}>API Index</a></li>
    </ul>

    <div class="nav-section-title">Modules</div>
    <ul>
      {{ range (where .Site.RegularPages "Section" "docs") }}
        {{ if hasPrefix .RelPermalink "/docs/api/modules/" }}
          <li><a href="{{ .RelPermalink }}"{{ if eq $.RelPermalink .RelPermalink }} class="active"{{ end }}>{{ .Title }}</a></li>
        {{ end }}
      {{ end }}
    </ul>

    <div class="nav-section-title">Types</div>
    <ul>
      {{ range (where .Site.RegularPages "Section" "docs") }}
        {{ if hasPrefix .RelPermalink "/docs/api/types/" }}
          <li><a href="{{ .RelPermalink }}"{{ if eq $.RelPermalink .RelPermalink }} class="active"{{ end }}>{{ .Title }}</a></li>
        {{ end }}
      {{ end }}
    </ul>
  </nav>

  <article class="docs-body">
    {{ if .Title }}<h1>{{ .Title }}</h1>{{ end }}
    {{ .Content }}
  </article>
</div>
{{ end }}
