diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-03-27 22:48:48 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-03-27 22:48:48 +0200 |
commit | db6ad1e00ea255fdae9306ab3133debcbd4d1732 (patch) | |
tree | 9c81317478b99220868baa42463fdeafd80f5e9d /hugo/layouts/partials/header.html | |
parent | dcf08e5f695afe5cf0b84f1131e0c2599ae229ad (diff) |
update source of www.sigsum.org
New template, font, colors, and logo. A few edits to text, chunking it
up under a few different pages that can be navigated.
Diffstat (limited to 'hugo/layouts/partials/header.html')
-rw-r--r-- | hugo/layouts/partials/header.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/hugo/layouts/partials/header.html b/hugo/layouts/partials/header.html new file mode 100644 index 0000000..14b6ad9 --- /dev/null +++ b/hugo/layouts/partials/header.html @@ -0,0 +1,24 @@ +<div class="container mt-5"> + <nav class="navbar navbar-expand-sm flex-column flex-sm-row text-nowrap p-0"> + <a class="navbar-brand mx-0 mr-sm-auto" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}"> + {{ with .Site.Params.logo }} + <img src="{{ . | absURL }}" height="48px" alt="logo"> + {{ end }} + {{ .Site.Title }} + </a> + <div class="navbar-nav flex-row flex-wrap justify-content-center"> + {{ with .Site.Menus.main }} + {{ $navbar_len := len . }} + {{ range $i, $nav_item := . }} + <a class="nav-item nav-link" href="{{ $nav_item.URL }}" title="{{ $nav_item.Name }}"> + {{ $nav_item.Pre }}{{ $nav_item.Name }}{{ $nav_item.Post }} + </a> + {{ if ne (add $i 1) $navbar_len }} + <span class="nav-item navbar-text mx-1">/</span> + {{ end }} + {{ end }} + {{ end }} + </div> + </nav> +</div> +<hr> |