You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openpower.foundation_sw_dev/themes/openpowerfoundation/layouts/hub/list.html

49 lines
1.3 KiB
HTML

{{ 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">{{ .Title }}</h1>
<div class="row">
<div class="col-8 offset-2">
<span class="section-description">{{ .Content }}</span>
</div>
</div>
</div>
</div>
<div class="container">
<div id="hubproviders" class="row">
<div class="col-2"></div>
{{ range .Data.Pages }}
<div id="hubprovider" class="col-lg-2 text-center">
<a href="{{ .RelPermalink }}">
{{ 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 }}
{{ end }}
{{ end }}
{{ end }}
<br>
{{ .Title }}
</a>
</div>
{{ end }}
</div>
</div>
</div>
{{ partial "hubform.html" . }}
</section>
</main>
{{ partial "footer.html" . }}