{{ $selectedIntegrations := (index . "selectedIntegrations") }}
{{ $integrations := (index . "integrations") }}
{{ $base := (index . "base") }}

<div class="integration-index">
  {{ range $id := $selectedIntegrations }}
  {{ $integration := index (where $integrations ".RelPermalink" $id) 0 }}
  <a class="integration-item" href="{{ $id }}">
    <div class="card is-flex-grow-1">
      <div class="card-image">
        <figure class="image">
          {{ partial "docs/integration-logo.html" (dict "id" $id) }}
        </figure>
      </div>
      <div class="card-content has-text-centered">
        <p class="title is-6">{{- $integration.Title -}}</p>
      </div>
    </div>
  </a>
  {{ end }}
</div>
