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/single.html

65 lines
1.5 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 offset-lg-2">
{{ if .Param "member" }}
Provider :
{{ $member := .Param "member" }}
{{ range where .Site.RegularPages "Section" "members" }}
{{ $membercompany := .File.BaseFileName }}
{{ if eq $member $membercompany }}
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "100x100" }}
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}">
{{ else }}
{{ .Title }}
{{ end }}
</a>
{{ if .Param "country" }}
({{ .Param "country" }})
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</div>
<div class="col-lg-4">
{{ if .Param "provides" }}
Provides following OPF HUB resources :
<ul>
{{ range $p := .Param "provides" }}
<li>{{ $p }}</li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
</div>
{{ if .Content }}
<div class="row">
{{ .Content }}
</div>
{{ end }}
</div>
</section>
{{ partial "hubform.html" . }}
</main>
{{ partial "footer.html" . }}