aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e69de29..45b67a8 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -0,0 +1,15 @@
+<div class="container mt-5">
+ <nav class="navbar navbar-expand-sm flex-column flex-sm-row p-0">
+ <a class="navbar-brand mr-sm-auto" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ <div class="navbar-nav flex-row">
+ {{ $navbar_len := len .Site.Menus.navbar }}
+ {{ range $i, $nav_item := .Site.Menus.navbar }}
+ <a class="nav-item nav-link" href="{{ $nav_item.URL | relURL }}">{{ $nav_item.Name }}</a>
+ {{ if ne (add $i 1) $navbar_len }}
+ <span class="nav-item navbar-text mx-1">/</span>
+ {{ end }}
+ {{ end }}
+ </div>
+ </nav>
+</div>
+<hr>