diff options
author | Olivier Roques <olivier@oroques.dev> | 2020-08-01 23:19:40 +0200 |
---|---|---|
committer | Olivier Roques <olivier@oroques.dev> | 2020-08-02 00:31:40 +0200 |
commit | 398eda4992ad73531f39595776c007014b3020c3 (patch) | |
tree | c52e5fdef0a7c07eaccc538ad4f95c558db5d692 /layouts/partials/header.html | |
parent | 74bfd79303ba8776e3b9d02f125a6c93eef9d2b5 (diff) |
Add sass files
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 15 |
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> |