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/themes/openpowerfoundation/layouts/hub/list.html

60 lines
1.6 KiB
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main id="main">
<section 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 class="row" id="list">
{{ range .Data.Pages.ByWeight }}
<div id="hubprovider" class="col-lg-6 btn">
<div class="col-lg-3">
<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 }}
</a>
<br>
{{ $projects := .Param "projects" }}
<ul>
{{ range $projects }}
<li>{{ . }}</li>
{{ end }}
</ul>
</div>
<div class="col-lg-9">
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<br>
{{ $provides := .Param "provides" }}
<ul>
{{ range $provides }}
<li>{{ . }}</li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
</div>
</div>
</section>
</main>
{{ partial "footer.html" . }}