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

103 lines
2.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">
{{ if .Param "member" }}
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 }}
{{ end }}
</div>
{{ if .Param "systems" }}
<div class="col-lg-4">
POWER Based systems :
<ul>
{{ range $s := .Param "systems" }}
<li>{{ $s }}</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ if .Param "provides" }}
<div class="col-lg-4">
Provides following OPF HUB resources :
<ul>
{{ range $p := .Param "provides" }}
<li>{{ $p }}</li>
{{ end }}
</ul>
</div>
{{ end }}
<div class="col-lg-4">&nbsp;</div>
{{ if .Param "addons" }}
<div class="col-lg-4">
Resource Addons :
<ul>
{{ range $a := .Param "addons" }}
<li>{{ $a }}</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ if .Param "projects" }}
<div class="col-lg-4">
Project Types :
<ul>
{{ range $o := .Param "projects" }}
<li>{{ $o }}</li>
{{ end }}
</ul>
</div>
{{ end }}
<div class="col-lg-4">&nbsp;</div>
{{ if .Param "operatingsystems" }}
<div class="col-lg-8 operatingsystems">
Operating Systems :
<ul class="operatingsystems">
{{ range $s := .Param "operatingsystems" }}
<li class="operatingsystems">{{ $s }}</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
</div>
{{ if .Content }}
<div class="row">
{{ .Content }}
</div>
{{ end }}
</div>
</section>
{{ partial "hubform.html" . }}
</main>
{{ partial "footer.html" . }}