shared-bulma-theme/layouts/partials/layout/navbarContents.html

68 lines
2.8 KiB
HTML
Raw Normal View History

<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="{{ .Site.BaseURL }}">
{{ partial "inline/menuSvg" }}
</a>
2018-01-13 18:39:29 +00:00
<div class="burger navbar-burger {{ .Site.Params.BulmaPrimaryShade }}" data-target="navMenu">
2018-01-13 18:39:29 +00:00
<span></span>
<span></span>
<span></span>
2018-01-14 03:33:52 +00:00
</div>
</div>
2018-01-13 18:39:29 +00:00
<div class="navbar-menu" id="navMenu">
<div class="navbar-start">
2018-01-08 01:24:18 +00:00
{{ $currentPage := . }} {{ range .Site.Menus.main }} {{ if .HasChildren }}
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-item px-lg">
2018-01-08 01:24:18 +00:00
{{ .Name }}
<span class="icon">
<i class="fas fa-caret-down"></i>
</span>
</a>
<div class="navbar-dropdown">
{{ range .Children }}
<a class="navbar-item{{ if $currentPage.IsMenuCurrent "main" . }} is-active{{ end }}" href="{{ .URL }}">
{{ .Name }}
</a>
2018-01-08 01:24:18 +00:00
{{ end }}
</div>
</div>
{{ else }}
<a class="navbar-item px-lg{{ if $currentPage.IsMenuCurrent "main" . }} is-active{{ end }}" href="{{ .URL }}">
2018-01-08 01:24:18 +00:00
{{ .Name }}
</a>
{{ end }} {{ end }}
2018-01-13 18:39:29 +00:00
<a class="navbar-item px-lg is-hidden-desktop" href="{{ .Site.Params.DiscordURL }}" target="_blank">
<i class="fab fa-discord mr-sm"></i> discord
2018-01-13 18:39:29 +00:00
</a>
<a class="navbar-item px-lg is-hidden-desktop" href="{{ .Site.Params.TwitterURL }}" target="_blank">
<i class="fab fa-twitter mr-sm"></i> twitter
2018-01-13 18:39:29 +00:00
</a>
<a class="navbar-item px-lg is-hidden-desktop" href="{{ .Site.Params.GithubURL }}" target="_blank">
<i class="fab fa-github mr-sm"></i> github
2018-01-13 18:39:29 +00:00
</a>
</div>
<div class="navbar-end">
<!-- Navbar icons -->
<a class="navbar-item px-lg is-hidden-touch" href="{{ .Site.Params.DiscordURL }}" target="_blank">
<span class="icon">
2018-01-08 01:24:18 +00:00
<i class="fab fa-2x fa-discord"></i>
</span>
</a>
<a class="navbar-item px-lg is-hidden-touch" href="{{ .Site.Params.TwitterURL }}" target="_blank">
2018-01-07 22:19:34 +00:00
<span class="icon">
2018-01-08 01:24:18 +00:00
<i class="fab fa-2x fa-twitter"></i>
2018-01-07 22:19:34 +00:00
</span>
</a>
<a class="navbar-item px-lg is-hidden-touch" href="{{ .Site.Params.GithubURL }}" target="_blank">
<span class="icon">
<i class="fab fa-2x fa-github"></i>
</span>
</a>
</div>
</div>
2018-01-08 01:24:18 +00:00
</div>