{{ define "title" }}
Helm | Docs
{{ end }}

{{ define "main" }}
{{ $isDocsRoot := eq .CurrentSection .FirstSection }}
<div class="container container-full docs docs-home">

  {{ partial "sidebar.html" . }}

  <div class="main home page" id="scrollpane">

    <nav class="top-bar">
      {{ partial "banner.html" . }}
      <ul class="inline right text-right">
        {{ partial "nav.html" . }}
      </ul>
    </nav>

    <div class="row">
      <div class="small-1 columns">&nbsp;</div>
      <div class="small-10 columns content-wrap">
        {{ .Content }}

        <div class="quick-links helm-commands">
          <h3 class="text-center">Quicklinks</h3>
          
          {{ if $isDocsRoot }}
          {{ $quicklinks := site.Params.quicklinks }}
          {{ range $quicklinks }}
          <a href="{{ .url }}" class="quick-item"> 
            <h4>
              {{ .title }}
              {{ with .via }}
              &nbsp;<small><i class="fa fa-external-link"></i></small>
              {{ end }}
            </h4>
            <p>
              {{ .description }}
              {{ with .via }}
              - <small>
                (via {{ . }})
              </small>
              {{ end }}
            </p>
          </a>
          {{ end }}
          
          {{ else }}
          
          {{ range .Pages }}
          <a href="{{ .RelPermalink }}" class="quick-item">
            <h4>
              {{ .Title }}
            </h4>
            <p>
              {{ .Description }}
            </p>
          </a>
          {{ end }}
          {{ end }}
        </div>

      </div>
      <div class="small-1 columns">&nbsp;</div>
    </div>
  </div>
</div>


{{ partial "footer-links.html" . }}

{{ end }}
