diff options
| author | Adam Whitlock <adam@adamwhitlock.com> | 2021-12-22 19:48:59 -0600 |
|---|---|---|
| committer | Adam Whitlock <adam@adamwhitlock.com> | 2021-12-29 23:02:47 -0600 |
| commit | b4b02a5240c5503a66072cd2725a9d6ea76f985a (patch) | |
| tree | 99905036f5002062949a944beb4a38b1f6170415 /layouts/partials/header.html | |
Initial commit of a working Hugo theme using Bulma
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..236e9b9 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,25 @@ +{{ $currentPage := . }} +<div class="container"> + <div class="level"> + <div class="level-left "> + <div class="level-item"> + <p class="title is-4"> + <a href="{{ .Site.BaseURL }}" class="title">{{.Site.Title}}</a> + </p> + </div> + + </div> + <div class="level-right"> + <div class="level-item"> + <nav class="navbar is-transparent" role="navigation" aria-label="main navigation"> + <div class="navbar-brand has-text-weight-semibold"> + {{ range .Site.Menus.nav }} + <a class="navbar-item{{if or ($currentPage.IsMenuCurrent "nav" .) ($currentPage.HasMenuCurrent "nav" .) }} is-active{{end}}" href="{{.URL}}" >{{ .Name }}</a> + {{ end }} + </div> + </nav> + </div> + </div> + </div> + <div class="level"></div> +</div>
\ No newline at end of file |
