{{ "<!-- Navigation -->" | safeHTML }}
<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">

    {{ "<!-- Brand and toggle get grouped for better mobile display -->" | safeHTML }}
    <div class="navbar-header page-scroll">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
        <a class="navbar-brand page-scroll" href="{{ if .IsHome }}/#page-top{{ else }}{{ .Site.BaseURL }}{{ end }}">
          {{ if .Site.Params.navigation.logo }}
            {{ $url := printf "img/%s" .Site.Params.navigation.logo }}
            <img src="{{ $url | absURL }}" class="img-responsive" alt="{{ .Site.Params.navigation.brand }}">
          {{ end }}
        </a>

      {{ if .Site.Params.navigation.logo }}
        <a class="navbar-brand page-scroll" href="{{ if .IsHome }}/#page-top{{ else }}{{ .Site.BaseURL }}{{ end }}">
          {{ .Site.Params.navigation.brand }}
        </a>
      {{ end }}

    </div>
    {{ "<!-- Collect the nav links, forms, and other content for toggling -->" | safeHTML }}
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">
        <li class="hidden">
          <a href="{{ if .IsHome }}/#page-top{{ else }}{{ .Site.BaseURL }}{{ end }}"></a>
        </li>

        {{ range .Site.Menus.prepend }}
          <li>
            <a href="{{ .URL }}">{{ .Name | markdownify }}</a>
          </li>
        {{ end }}

        {{ if .Site.Params.was.enable }}
          <li>
            <a class="page-scroll" href="{{ .Site.BaseURL }}#was">{{ with .Site.Params.navigation.was }}{{ . }}{{ end }}</a>
          </li>
        {{ end }}

        {{ if .Site.Params.slam2019.enable }}
          <li>
            <a class="page-scroll" href="{{ .Site.BaseURL }}#slam2019">{{ with .Site.Params.navigation.slam2019 }}{{ . }}{{ end }}</a>
          </li>
        {{ end }}

        {{ if .Site.Params.tickets.enable }}
          <li>
            <a class="page-scroll" href="{{ .Site.BaseURL }}#tickets">{{ with .Site.Params.navigation.tickets }}{{ . }}{{ end }}</a>
          </li>
        {{ end }}

        {{ if .Site.Params.anfahrt.enable }}
          <li>
            <a class="page-scroll" href="{{ .Site.BaseURL }}#anfahrt">{{ with .Site.Params.navigation.anfahrt }}{{ . }}{{ end }}</a>
          </li>
        {{ end }}

        {{ if .Site.Params.vorjahr.enable }}
          <li>
            <a class="page-scroll" href="{{ .Site.BaseURL }}#vorjahr">{{ with .Site.Params.navigation.vorjahr }}{{ . }}{{ end }}</a>
          </li>
        {{ end }}

        {{ range .Site.Menus.postpend }}
          <li>
            <a href="{{ .URL }}">{{ .Name }}</a>
          </li>
        {{ end }}
      </ul>
    </div>
    {{ "<!-- /.navbar-collapse -->" | safeHTML }}
  </div>
  {{ "<!-- /.container-fluid -->" | safeHTML }}
</nav>
