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.

105 lines
2.6 KiB
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main id="main">
<section id="hubprovider">
<div id="hubprovider">
<div class="container-fluid">
<div class="section-header">
<h2 class="section-title text-center mb-4">{{ .Title }}</h2>
<span class="section-divider"></span>
</div>
<div class="row">
<div class="col-lg-4">
{{ if .Param "member" }}
<h3>Provider :&nbsp;
{{ $member := .Param "member" }}
{{ range where .Site.RegularPages "Section" "members" }}
{{ $membercompany := .File.BaseFileName }}
{{ if eq $member $membercompany }}
{{ .Title }}
{{ if .Param "country" }}
&nbsp;({{ .Param "country" }})
{{ end }}
<br>
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "200x200" }}
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}">
{{ else }}
{{ .Title }}
{{ end }}
</a>
{{ end }}
{{ end }}</h3>
{{ end }}
</div>
<div class="col-lg-4">
{{ if .Param "systems" }}
<h3>POWER Based systems :</h3>
<ul>
{{ range $s := .Param "systems" }}
<li>{{ $s }}</li>
{{ end }}
</ul>
{{ end }}
{{ if .Param "provides" }}
<h3>Provides these OPF HUB resources :</h3>
<ul>
{{ range $p := .Param "provides" }}
<li>{{ $p }}</li>
{{ end }}
</ul>
{{ end }}
</div>
<div class="col-lg-4">
{{ if .Param "projects" }}
<h3>Project Types :</h3>
<ul>
{{ range $o := .Param "projects" }}
<li>{{ $o }}</li>
{{ end }}
</ul>
{{ else }}
&nbsp;
{{ end }}
{{ if .Param "addons" }}
<h3>Resource Addons :</h3>
<ul>
{{ range $a := .Param "addons" }}
{{ if ne $a "none" }}
<li>{{ $a }}</li>
{{ end }}
{{ end }}
</ul>
{{ end }}
</div>
</div>
{{ if .Param "sponsors"}}
<div class="row">
<div class="col-lg-4">
<h5>Sponsors :</h5>
{{ range $s := .Param "sponsors" }}
{{ $imagename := (printf "%s.png" $s) }}
{{ $imagelocation := (printf "%s/%s" "images/sponsors/hub/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "150x150" }}
<img src="{{ $image.RelPermalink }}" alt="{{ $s }}">
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ if .Content }}
<div class="row">
{{ .Content }}
</div>
{{ end }}
</div>
</section>
{{ partial "hubform.html" . }}
</main>
{{ partial "footer.html" . }}