focalboard/website/site/layouts/partials/nav2.html
2021-03-18 13:31:26 +01:00

26 lines
1,008 B
HTML

{{ if .Site.Params.notification.enable }}
<header class="with-notification-bar">
{{ else }}
<header>
{{ end }}
<a href="/"><img src="/img/logo.svg" alt="Logo" width="212px"></a>
<div class="header__menu-toggle">
<i class="fa fa-bars"></i>
</div>
<ul class="header__links--right">
<li><a href="https://github.com/mattermost/focalboard" target='_blank'>View Source</a></li>
{{ range .Site.Menus.postpend }}
{{ $drafts := index $.Site.Params.navigation.drafts 0}}
{{ $draft := index $drafts .Name }}
{{ if or (eq $.Site.BuildDrafts true) (eq $draft false) }}
{{ if eq (lower .Name) $.Section }}
<li class="active"><a href="{{ .URL }}">{{ .Name | markdownify }}</a></li>
{{ else }}
<li><a href="{{ .URL }}">{{ .Name | markdownify }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</header>
{{ partial "notification.html" .}}