-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathheader.html
More file actions
76 lines (74 loc) · 3.53 KB
/
header.html
File metadata and controls
76 lines (74 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{{ "<!-- navigation -->" | safeHTML }}
<header class="navigation">
<div class="container">
<!-- navbar -->
<nav class="navbar navbar-expand-lg navbar-light bg-transparent">
<a class="navbar-brand" href='{{ if eq .Site.Language.Lang "en" }}{{ site.BaseURL }}{{ else }}{{ site.BaseURL }}{{ .Site.Language.Lang }}{{end}}'>
<img width="{{ site.Params.logo_width}}" class="img-fluid" src="{{ site.Params.logo | absURL }}" alt="{{ site.Title }}">
</a>
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navigation">
<i class="ti-menu"></i>
</button>
<div class="collapse navbar-collapse text-center" id="navigation">
<ul class="navbar-nav mx-auto">
{{ range site.Menus.main }}
{{ if .HasChildren }}
<li class="nav-item dropdown">
<a class="nav-link nav-with-toggle" href="{{ .URL | absURL }}"{{ with .Pre }} target="{{ . }}"{{ end }}>{{ .Name }}</a>
<a class="dropdown-toggle" href="#" role="button" data-toggle="dropdown" data-reference="dropdown-toggle" data-display="static"></a>
<div class="dropdown-menu">
{{ range .Children }}
<a class="dropdown-item" href="{{ .URL | absURL }}"{{ with .Pre }} target="{{ . }}"{{ end }}>{{ .Name }}</a>
{{ end }}
</div>
</li>
{{ else }}
<li class="nav-item">
<a class="nav-link" href="{{ .URL | absURL }}"{{ with .Pre }} target="{{ . }}"{{ end }}>{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
</ul>
<a href="{{ "slack" | absURL }}" class="btn btn-sm slack-invite-btn btn-primary ml-2" target="_blank"><i class="ti-comments pr-2"></i>{{ T "join_slack" }}</a>
{{ if in .CurrentSection.Permalink "/learn/learning-path"}}
<select id="langpicker" class="selectpicker" data-style="btn-light btn-sm ml-3" data-width="fit">
<option>{{ .Site.Language.LanguageName }}</option>
{{ range .Translations }}
<option value="{{ .Permalink }}">{{ .Language.LanguageName }}</option>
{{ end }}
</select>
{{ else }}
<select id="langpicker" class="selectpicker" data-style="btn-light btn-sm ml-3" data-width="fit">
<option>{{ .Site.Language.LanguageName }}</option>
{{ range where .Translations ".Language.LanguageName" "in" "English Français 日本語"}}
<option value="{{ .Permalink }}">{{ .Language.LanguageName }}</option>
{{ end }}
</select>
{{ end }}
</div>
</nav>
</div>
</header>
{{ "<!-- /navigation -->" | safeHTML }}
<section class="notice bg-light">
<div class="container">
<div class="row align-items-center">
<div class="col-md-12 text-center">
<i class="ti-calendar mr-2"></i>Join us on Wednesday, June 28th at 9am BST / 10am CEST / 1:30pm IST / 6pm AEST, when Mishari Muqbil from Zymple will discuss Cultural crosswires
<a href="https://bit.ly/3N1TAPz" class="btn-link ml-1" target="_blank"> how to communicate effectively and still be misunderstood.
<i class="ti-arrow-right"></i></a>
</div>
</div>
</div>
</section>
<!--
<section class="notice bg-primary text-light">
<div class="container">
<div class="row align-items-center">
<div class="col-md-12 text-center">
<a class="text-light" target="_blank" href="/events/isc-2022">Save the Dates for InnerSource Summit 2022</a>
</div>
</div>
</div>
</section>
-->