navigation.html 5.88 KB
Newer Older
1
2
3
4
<section class="sticky-top navigation">
	<div class="container">
		<nav class="navbar navbar-expand-lg navbar-dark">
			<a class="navbar-brand p-0" href="{{ .Site.BaseURL | relLangURL }}">
5
				<!--
6
				{{ if .Site.Params.logo }}
7
				<img class="img-fluid" src="{{ .Site.Params.logo | absURL }}" alt="{{ .Site.Title }}"> 
8
9
10
				{{ else }}
				{{ .Site.Title }}
				{{ end }}
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
				-->
				<svg
					xmlns:svg="http://www.w3.org/2000/svg"
					xmlns="http://www.w3.org/2000/svg"
					xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
					xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
					width="200px"
					height="200px"
					viewBox="0 0 190.2997 180.30882"
					version="1.1"
					class="svg_logo"
					inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
					sodipodi:docname="parrot.svg">
					<defs
						id="defs2" />
					<g
						inkscape:label="Layer 1"
						inkscape:groupmode="layer"
						id="layer1"
						transform="translate(-12.544004,-57.922972)">
						<path
						id="circle"
						d="M 195.5754,166.8618 A 90.857535,88.954414 52.283172 0 1 90.627326,236.25398 90.857535,88.954414 52.283172 0 1 19.438719,129.30179 90.857535,88.954414 52.283172 0 1 124.38679,59.909617 90.857535,88.954414 52.283172 0 1 195.5754,166.8618 Z"
						inkscape:connector-curvature="0"
						inkscape:export-xdpi="96"
						inkscape:export-ydpi="96" />
						<path
						d="m 87.169259,90.906571 c -0.2155,0.0042 -0.477696,0.02805 -0.752533,0.05684 -0.781555,-0.140627 -2.298286,0.05997 -4.86819,0.624222 -2.686309,0.589803 -5.500589,1.19939 -6.254276,1.354889 -1.583924,0.326821 -1.616973,0.546658 -1.65635,11.115578 -0.01328,3.56948 -0.05612,7.34675 -0.09498,8.39391 -0.03887,1.04716 0.08522,1.93437 0.275159,1.97188 0.09004,0.0177 0.526552,-0.46973 1.15499,-1.26085 0.02606,0.70305 0.131384,1.21909 0.275161,1.24741 0.189961,0.0374 1.891917,-2.12362 3.782236,-4.80258 1.3863,-1.96469 2.65901,-3.64177 3.311233,-4.38659 1.733118,0.87645 4.629156,2.86356 4.812863,3.41254 0.153386,0.45831 1.719731,2.13065 3.481126,3.71586 1.807306,1.62654 3.678903,3.94569 4.295837,5.32346 0.601264,1.34276 3.079306,6.37088 5.506645,11.17396 l 4.41334,8.73341 3.29018,0.70638 c 1.80971,0.38873 4.53314,1.13977 6.05207,1.66907 2.67592,0.93245 2.7807,1.05095 3.36313,3.81198 0.3306,1.56725 0.7128,5.53063 0.84946,8.80729 0.39371,9.43986 1.0205,19.14446 1.54718,23.94828 0.14583,1.33011 0.41276,4.443 0.59291,6.91706 0.18014,2.47408 0.45456,5.5881 0.60956,6.92018 0.15501,1.33206 0.4573,4.45212 0.67224,6.9336 0.21494,2.48149 0.54582,6.00626 0.7349,7.83273 0.1891,1.82645 0.3522,4.20531 0.36281,5.28624 0.0106,1.08093 0.15036,1.87371 0.31041,1.76157 0.10287,-0.072 0.4568,-2.18127 0.9185,-5.27023 0.11141,1.37663 0.19439,2.7479 0.20173,3.49522 0.0106,1.08093 0.15037,1.87372 0.31041,1.76157 0.29871,-0.20928 2.63856,-16.9067 3.95213,-28.20361 0.26361,-2.26709 0.59364,-4.32477 0.8715,-5.55598 0.35536,0.59712 0.75421,1.3738 1.14422,2.26227 2.88238,6.56628 4.01645,9.19973 5.14139,11.93823 0.59975,1.45997 1.18374,2.5895 1.29748,2.50981 0.0666,-0.0466 0.1633,-0.95021 0.25948,-2.22974 0.55228,1.30656 1.06511,2.29026 1.17067,2.2163 0.11372,-0.0796 0.31691,-2.50983 0.45141,-5.40045 0.22262,-4.78423 0.33698,-8.0757 0.8862,-25.48969 0.13365,-4.23734 0.19969,-6.00536 0.36181,-6.77859 1.60133,1.23596 5.01965,4.1556 8.8404,7.5723 5.1199,4.57847 9.41317,8.25128 9.54054,8.16189 0.0916,-0.0643 -0.0856,-0.51427 -0.72462,-1.71403 1.28039,1.08216 2.10166,1.73823 2.15527,1.7006 0.21474,-0.15072 -0.87748,-2.14369 -6.56372,-11.9744 -1.81034,-3.12983 -5.33107,-9.27949 -10.71217,-18.71163 -0.5544,-0.97177 -2.83476,-4.94661 -5.06746,-8.83262 -2.2327,-3.88604 -5.24576,-9.17805 -6.69541,-11.76046 -1.44966,-2.58241 -2.85337,-5.00844 -3.11931,-5.39062 -0.26594,-0.38219 -1.95812,-3.34122 -3.7607,-6.57604 -1.80256,-3.23481 -3.66582,-6.22009 -4.14014,-6.63389 -0.85277,-0.74398 -8.88062,-3.346217 -18.15228,-5.88359 -4.782881,-1.308919 -12.332893,-4.782173 -13.383487,-6.156944 -0.1741,-0.227829 -0.569189,-0.337198 -1.250951,-0.323995 z"
						id="bird"
						inkscape:connector-curvature="0" />
					</g>
				</svg>
43
			</a>
44

45
46
47
			<button class="navbar-toggler rounded-0" type="button" data-toggle="collapse" data-target="#navigation">
				<span class="navbar-toggler-icon"></span>
			</button>
48

49
50
			<div class="collapse navbar-collapse" id="navigation">
				<ul class="navbar-nav ml-auto">
51
52
53
					<!-- Home button
						<li class="nav-item"><a class="nav-link" href="/">{{ .Site.Params.home }}</a></li>
					-->
54
55
56
57
					{{ if .IsHome }}
					{{ range .Site.Menus.main }}
					<li class="nav-item"><a class="nav-link" href="{{ .URL }}">{{ .Name }}</a></li>
					{{ end }}
58

59
					{{ else }}
60
61
					
					{{ $current := . }}
62
					{{ range .Site.Menus.main }}
63
64
65
					{{ if hasPrefix .URL "http" }}
					<li class="nav-item"><a class="nav-link" href="{{ .URL }}">{{ .Name }}</a>
					{{ else }}
66
67
68
					{{ $active := or ($current.IsMenuCurrent "main" .) ($current.HasMenuCurrent "main" .) }}
					{{ $active := in $current.RelPermalink .URL }}
					<li class="nav-item"><a class="nav-link {{ if $active }}active{{ end }}" href="{{ $.Site.BaseURL | relLangURL }}{{ .URL }}">{{ .Name }}</a>
69
					{{ end }}
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
					</li>
					{{ end }}
					{{ end }}
				</ul>
				<!-- Language List -->
				{{- if .Site.IsMultiLingual }}
				<select id="select-language" onchange="location = this.value;">
					{{ $siteLanguages := .Site.Languages}}
					{{ $pageLang := .Page.Lang}}
					{{ range .Page.AllTranslations }}
					{{ $translation := .}}
					{{ range $siteLanguages }}
					{{ if eq $translation.Lang .Lang }}
					{{ $selected := false }}
					{{ if eq $pageLang .Lang}}
					<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}
					</option>
					{{ else }}
					<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>
					{{ end }}
					{{ end }}
					{{ end }}
					{{ end }}
				</select>
				{{ end }}
			</div>
		</nav>
	</div>
</section>