-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathnav.html
More file actions
40 lines (40 loc) · 2 KB
/
Copy pathnav.html
File metadata and controls
40 lines (40 loc) · 2 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
<!--
SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: 2015 Omar Abdelhafith <o.arrabi@me.com>
SPDX-FileCopyrightText: 2019 Free Software Foundation Europe e.V. <https://fsfe.org>
-->
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<noscript><div class="noscript"><strong>{{ i18n "warning" }}</strong> {{ i18n "noscript_warning" }}</div></noscript>
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">{{ i18n "toggle_navigation" }}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="page-scroll navbar-brand" href="/" title="{{ .Site.Title }}">
<img id="logo" src="/img/reuse-horizontal.png" />
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
{{- $rel := .RelPermalink -}}
{{- range .Site.Menus.main -}}
<!-- if RelPermalink = this menu item, mark it -->
<li class="{{if strings.HasSuffix $rel .URL }}active{{end}}"><a href="{{ .URL | relLangURL }}">{{ i18n (delimit (slice "menu_" .Identifier) "") }}</a></li>
{{- end -}}
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
{{- $slug := "" -}}
{{- with .File -}}{{ $slug = replace (.TranslationBaseName | lower) " " "_" }}{{ end }}
{{- if or (not $slug) (eq $slug "_index") -}}{{ $slug = "index" }}{{ end }}
<div class="content-section-b">
<div class="container page-{{ $slug }}">