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

{{ define "main" }}
{{ $isDocsRoot := eq .CurrentSection .FirstSection }}

<div id="helm" class="page-docs page-wrapper page-docs-list">
  <header>
    {{ partial "banner.html" . }}
    {{ partial "nav.html" . }}
    {{ partial "nav-fixed.html" . }}
  </header>

  <div class="columns" id="helm">
    <aside class="column is-narrow is-gapless sidebar-wrapper">
      {{ partial "sidebar.html" . }}
    </aside>
    
    <section class="column content-docs">
      <article class="content-wrapper">
        {{ .Content }}

        <section class="quick-links clearfix">
          <h3 class="text-center">Quicklinks</h3>
          
          {{ if $isDocsRoot }}
          {{ $quicklinks := site.Params.quicklinks }}
          {{ range $quicklinks }}
          <a href="{{ .url }}" class="quick-item clearfix"> 
            <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 }}
        </section>
      </article>
    </section>
  </div>
</div>

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