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

25 lines
1.1 KiB
HTML

<!-- Navigation -->
<div id="nav-bar" class="nav-bar">
<!-- <div class="nav-bar__container"> -->
<div class="nav-bar__header">
<a href="#hero" 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>
<!-- <nav class="nav-bar__menu-off"> -->
<ul class="nav-bar__menu hide-menu">
{{ range where .Site.RegularPages "Section" "sections" }}
{{ if ne .Params.navbar false }}
{{ if ne .Params.hidden true }}
<li class="nav-bar__menu-item">
<a href="#{{ .File.BaseFileName }}">
{{ .Params.link_text | default .Title }}
</a>
</li>
{{ end }} {{ end }}
{{ end }}
</ul>
<!-- </nav> -->
<!-- </div> -->
</div>
<div class="nav-bar-spacer"></div>