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

26 lines
760 B
HTML

<!-- Navigation -->
<div id="nav-background">
<div id="nav-container">
<header id="nav-header">
<h1><a href="#" id="nav-logo">{{ .Site.Params.navbar.text | default .Site.Title }}</a></h1>
<div id="nav-menu-button fa fa-bars">
</div>
</header>
<nav>
<ul class="nav-ul hide-ul">
{{ range .Data.Pages }}
<li>
<a class="nav-link" href="#{{ .File.BaseFileName }}">
{{ if isset .Params "link_text" }}
{{ index .Params "link_text" }}
{{ else }}
{{ index .Title }}
{{ end }}
</a>
</li>
{{ end }}
</ul>
</nav>
</div>
</div>