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/partials/navbar.html

62 lines
1.6 KiB
HTML

<header id="header">
<div class="container">
<div id="logo" class="pull-left">
{{ $imageresource := resources.Get "img/openpower-logo-white.png" }}
{{ $imagefile := $imageresource.Resize "350x60" }}
<h1><a href="/"><img src="{{ $imagefile.RelPermalink }}" alt="OpenPOWER Foundation" title="OpenPOWER Foundation"></a></h1>
</div>
<nav id="nav-menu-container">
<ul class="nav-menu">
{{ range .Site.Menus.navbar }}
{{ if eq .Identifier "groups" }}
<li class="menu-has-children"><a href="{{ .URL }}">{{ .Name }}</a>
<ul>
{{ range $.Site.Pages }}
{{ $group := .Param "wgtype" }}
{{ if eq $group "twg" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ if eq $group "sig" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
{{ else }}
{{ if .HasChildren }}
<li class="menu-has-children"><a href="{{ .URL }}">{{ .Name }}</a>
<ul>
{{ range .Children }}
{{ if .HasChildren }}
<li class="menu-has-children"><a href="{{ .URL }}">{{ .Name }}</a>
<ul>
{{ range .Children }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</li>
{{ else }}
<li>
<a href="{{ .URL }}">
{{ if .Pre }}
<i class={{ .Pre }}></i>&nbsp;&nbsp;
{{ end }}
{{ .Name }}
{{ if .Post }}
&nbsp;&nbsp;<i class="{{ .Post }}"></i>
{{ end }}
</a>
</li>
{{ end }}
{{ end }}
</ul>
{{ else }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ end }}
<li><a href="/contact/">Contact</a></li>
</ul>
</nav>
</div>
</header>