{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main id="main">
<section id="hubproviders">
<div id="hubproviders">
<div class="container">
<div class="section-header mb-4">
<h1 class="section-title text-center mb-4">{{ .Title }}</h1>
<span class="section-divider"></span>
<div class="row">
<div class="col-8 offset-2">
<span class="section-description">{{ .Content }}</span>
</div>
<div id="hubproviders" class="row">
<div class="col-2"></div>
{{ range .Data.Pages }}
<div id="hubprovider" class="col-lg-2 text-center">
<a class="btn btn-outline-primary" href="{{ .Permalink }}">
{{ if .Param "member" }}
{{ $member := .Param "member" }}
{{ range where .Site.RegularPages "Section" "members" }}
{{ $membercompany := .File.BaseFileName }}
{{ if eq $member $membercompany }}
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "100x100 webp" }}
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}">
{{ end }}
<br>
{{ .Title }}
</a>
{{ partial "hubform.html" . }}
</section>
</main>
{{ partial "footer.html" . }}