blogotheme/layouts/partials/nav-bar.html
2021-01-03 14:33:26 +01:00

36 lines
1.2 KiB
HTML

<nav class="nav-bar card-container">
<div class="card blog-card menu-container">
<h1 class="nav-header">
<a href="{{ .Site.BaseURL }}" class="nav-text">
{{- if isset $.Site.Params "brand"}}
{{- $.Site.Params.brand -}}
{{ else }}
{{- $.Site.Title -}}
{{ end -}}
</a>
</h1>
<br>
<section id="menu">
<ul>
<li><a href="{{ .Site.BaseURL }}" class="">HOME</a></li>
{{ range where .Site.Pages "Params.displayinmenu" true -}}
<li><a href="{{ .Permalink }}" class="">{{ .Title | upper }}</a></li>
{{ end -}}
<!-- Categories -->
<!-- {{ range $key, $value := .Site.Taxonomies.categories -}}
<!-- {{ with $.Site.GetPage (printf "%s%s" "categories/" ($key | urlize)) }}
<li><a href="{{ .Permalink }}" class="">{{ .Title | upper }}</a></li>
{{ end }}
{{- end }} -->
{{ if eq .Site.Params.rssinmenu true -}}
<li><a href="{{ "/index.xml" | absURL }}" class="hamburger-menu-overlay-link">RSS</a></li>
{{- end }}
</ul>
</section>
</div>
</nav>