header.html 1012 Bytes
Newer Older
Fran Acien's avatar
Fran Acien committed
1
2
<nav class="header-site navbar navbar-expand-lg navbar-light" role="navigation" style="box-shadow: 0px 4px 3px rgba(0, 0, 0, .5) !important; border-top: 30px solid #00a9e0 !important;">
  <div class="container">
3
    <a class="logo navbar-brand" href="{{ "/" | relURL }}"><img src="{{ "/" | relURL }}/gsi-logo.png"></a>
Francisco Jesús Acién Pérez's avatar
adding  
Francisco Jesús Acién Pérez committed
4

Fran Acien's avatar
Fran Acien committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav mr-auto">
        {{ $url := print "/" (index (split .URL "/") 1) "/" }}
        {{- range .Site.Menus.main }}
        <li class="nav-item {{ if eq $url .URL }}active{{ end }}"><a class="nav-link" href="{{ .URL | safeURL }}" title="{{ .Name }}">{{ .Name }}</a></li>
        {{- end }}

      </ul>

    </div>

  </div>
</nav>