uci-hugo-landingpage/layouts/partials/navbar.html

28 lines
1.2 KiB
HTML
Raw Normal View History

2017-02-28 09:56:46 -08:00
<!-- Navigation -->
<div id="nav-bar">
<div class="nav-bar__container">
<div class="nav-bar__header">
<a href="{{ if eq .Site.Params.use_hero true }}#hero{{end}}" class="nav-bar__logo">
{{ if .Site.Params.navbar.logo_text }} {{ .Site.Params.navbar.logo_text }}
{{ else }} {{ .Site.Title | default "Add a site title" }} {{ end }}
</a>
<div class="nav-bar__menu-button"> <i class="fa fa-bars"></i></div>
</div>
2017-03-11 20:11:20 -08:00
<ul class="nav-bar__menu hide-menu">
2017-04-07 01:40:29 -07:00
{{ range where .Site.RegularPages "Section" "sections" }}
{{ if ne .Params.navbar false }}
{{ if ne .Params.hidden true }}
<li >
<a class="nav-bar__menu-item" href="#{{ .File.BaseFileName }}">
{{ .Params.link_text | default .Title }}
</a>
2017-03-11 20:11:20 -08:00
</li>
{{ end }} {{ end }}
{{ end }}
2017-03-11 20:11:20 -08:00
</ul>
</div>
{{ if .Site.IsServer }}<div class="nav-bar__draft"> DRAFT - DRAFT - DRAFT - DRAFT </div> {{ end }}
2017-03-11 20:11:20 -08:00
</div>
2017-04-07 01:40:29 -07:00
<div class="nav-bar-spacer"></div>