123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <header class="navbar-affixed-top" data-spy="affix" data-offset-top="62">
- <div class="navbar navbar-default yamm" role="navigation" id="navbar">
- <div class="container">
- <div class="navbar-header">
- <a class="navbar-brand home" href="{{ "/" | relURL }}">
- <img src="{{ .Site.Params.logo | relURL }}" alt="{{ .Title }} logo" class="hidden-xs hidden-sm logo">
- <img src="{{ .Site.Params.logo_small | relURL }}" alt="{{ .Title }} logo" class="visible-xs visible-sm logo-sm">
- <span class="sr-only">{{ .Title }} - {{ i18n "navHome" }}</span>
- <span class="logo_text">AI Video</span>
- </a>
- <div class="navbar-buttons">
- <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
- <span class="sr-only">{{ i18n "navToggle" }}</span>
- <i class="fas fa-align-justify"></i>
- </button>
- </div>
- </div>
- <!--/.navbar-header -->
- <div class="navbar-collapse collapse" id="navigation">
- <ul class="nav navbar-nav navbar-right">
- {{ $current := . }}
- {{ range .Site.Menus.main }}
- {{ $topLevel := replace .URL "/" "" }}
- <li class="dropdown{{ if eq $current.RelPermalink .URL | or (eq $current.Type $topLevel) | or (and (eq (default (trim .URL "/") .Identifier) "blog") (in (slice "taxonomy" "taxonomyTerm") $current.Kind)) }} active{{ end }}">
- {{ if .HasChildren }}
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ .Name }} <span class="caret"></span></a>
- <ul class="dropdown-menu">
- {{ range .Children }}
- <li><a href="{{ .URL }}">{{ .Name }}</a></li>
- {{ end }}
- </ul>
- {{ else }}
- <a href="{{ .URL }}">{{ .Name }}</a>
- {{ end }}
- </li>
- {{ end }}
- </ul>
- </div>
- <!--/.nav-collapse -->
- <div class="collapse clearfix" id="search">
- <form class="navbar-form" role="search">
- <div class="input-group">
- <input type="text" class="form-control" placeholder="Search">
- <span class="input-group-btn">
- <button type="submit" class="btn btn-template-main"><i class="fas fa-search"></i></button>
- </span>
- </div>
- </form>
- </div>
- <!--/.nav-collapse -->
- </div>
- </div>
- </header>
- <!-- *** NAVBAR END ***-->
|