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