| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| https://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| |
| {{ $cover := and (.HasShortcode "blocks/cover") (not .Site.Params.ui.navbar_translucent_over_cover_disable) }} |
| <nav class="js-navbar-scroll navbar navbar-expand navbar-dark {{ if $cover}} td-navbar-cover {{ end }}flex-column flex-md-row td-navbar"> |
| <a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}"> |
| {{/* AVRO-3555: Don't inline the existing logo for now. |
| <span class="navbar-logo">{{ if .Site.Params.ui.navbar_logo }}{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML }}{{ end }}{{ end }}</span><span class="text-uppercase font-weight-bold">{{ .Site.Title }}</span> |
| */}} |
| <span class="navbar-logo"><img src="./docs/++version++/logo.svg" width="100" height="30" style="margin: 0 10px"></span><span class="text-uppercase font-weight-bold">{{ .Site.Title }}</span> |
| </a> |
| |
| <div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar"> |
| <ul class="navbar-nav mt-2 mt-lg-0"> |
| {{ $p := . }} |
| {{ range .Site.Menus.main }} |
| <li class="nav-item mr-4 mb-2 mb-lg-0"> |
| {{ $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) }} |
| {{ with .Page }} |
| {{ $active = or $active ( $.IsDescendant .) }} |
| {{ end }} |
| {{ $pre := .Pre }} |
| {{ $post := .Post }} |
| {{ $url := urls.Parse .URL }} |
| {{ $baseurl := urls.Parse $.Site.Params.Baseurl }} |
| <a class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}>{{ with .Pre}}{{ $pre }}{{ end }}<span{{if $active }} class="active"{{end}}>{{ .Name }}</span>{{ with .Post}}{{ $post }}{{ end }}</a> |
| </li> |
| {{ end }} |
| <li class="nav-item dropdown mr-4 d-none d-lg-block"> |
| {{ partial "navbar-docs-selector.html" . }} |
| </li> |
| <li class="nav-item dropdown mr-4 d-none d-lg-block"> |
| {{ partial "navbar-asf-links.html" . }} |
| </li> |
| {{ if (gt (len .Site.Home.Translations) 0) }} |
| <li class="nav-item dropdown mr-4 d-none d-lg-block"> |
| {{ partial "navbar-lang-selector.html" . }} |
| </li> |
| {{ end }} |
| </ul> |
| </div> |
| <div class="navbar-nav d-none d-lg-block">{{ partial "search-input.html" . }}</div> |
| </nav> |