aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
blob: 446c42d04e91c100614b1c8cc0b17229afadab49 (plain)
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr-fr">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
    <title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
    {{ block "head" . }}{{ end }}
    <link href="{{ "css/fournil.css" | relURL }}" rel="stylesheet" type="text/css">
  </head>
  <body>
    {{ block "header" . }}
    {{ end }}
    {{ block "menu" .}}
    <nav id="fournil-nav" class="navbar navbar-expand-sm navbar-light bg-light sticky-top{{ block "fournil-nav-classes" . }}{{ end }}">
      <a class="navbar-brand" href={{ "/" | relURL }}>
        <img src="{{ "img/logo_pain_transparent.png" | relURL }}">
      </a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Afficher/Cacher le menu">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNavDropdown">
        <ul class="navbar-nav">
            {{ $currentPage := . }}
            {{ range .Site.Menus.main }}
            <li class="nav-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}">
              <a class="nav-link" href="{{ .URL }}" title="{{ .Name }}">{{ .Name }}</a>
            </li>
            {{ end }}
        </ul>
      </div>
    </nav>
    {{ end }}
    <div class="container-fluid">
    {{ block "main" . }}
    {{ end }}
    </div>
    <script src="{{ "js/fournil.min.js" | relURL }}"></script>
    {{ block "footer" . }}
    {{ end }}
  </body>
</html>