diff options
Diffstat (limited to 'layouts/partials/header/header.html')
-rw-r--r-- | layouts/partials/header/header.html | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/layouts/partials/header/header.html b/layouts/partials/header/header.html index 970c460..aa99135 100644 --- a/layouts/partials/header/header.html +++ b/layouts/partials/header/header.html @@ -1,9 +1,9 @@ -<!-- <div class="header-bar fixed-top"></div> --> +<div class="header-bar fixed-top"></div> <header class="navbar fixed-top navbar-expand-md navbar-light"> <div class="container"> <input class="menu-btn order-0" type="checkbox" id="menu-btn"> <label class="menu-icon d-md-none" for="menu-btn"><span class="navicon"></span></label> - <a class="navbar-brand order-1 order-md-0 mr-auto" href="{{ .Site.BaseURL }}">{{ .Site.Params.Title }}</a> + <a class="navbar-brand order-1 order-md-0 mr-auto text-primary" href="{{ "/" | absURL }}">{{ .Site.Params.Title }}</a> <button id="mode" class="btn btn-link order-2 order-md-4" type="button" aria-label="Toggle mode"> <span class="toggle-dark"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg></span> <span class="toggle-light"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg></span> @@ -11,7 +11,7 @@ <ul class="navbar-nav social-nav order-3 order-md-5"> {{ range .Site.Menus.social -}} <li class="nav-item"> - <a class="nav-link" href="{{ .URL | absLangURL }}" target="_blank" rel="noreferrer noopener">{{ .Pre | safeHTML }}<span class="ml-2 sr-only">{{ .Name | safeHTML }}</span></a> + <a class="nav-link" href="{{ .URL | absURL }}">{{ .Pre | safeHTML }}<span class="ml-2 sr-only">{{ .Name | safeHTML }}</span></a> </li> {{ end -}} </ul> @@ -25,13 +25,19 @@ {{- $active = or $active (and (eq .Name "Guides") (eq $current.Section "guides")) -}} {{- $active = or $active (and (eq .Name "Blog") (eq $current.Section "blog" "authors")) -}} <li class="nav-item{{ if $active }} active{{ end }}"> - <a class="nav-link" href="{{ .URL | absLangURL }}">{{ .Name }}</a> + <a class="nav-link" href="{{ .URL | absURL }}">{{ .Name }}</a> </li> {{ end -}} + <!-- + <li class="nav-item"> + <a class="nav-link" href="https://community.gethyas.com/">Community</a> + </li> + --> </ul> <div class="break order-6 d-md-none"></div> <form class="navbar-form flex-grow-1 order-7 order-md-3"> - <input class="form-control is-search" type="search" placeholder="Search {{ .Site.Params.Title }} docs..." aria-label="Search {{ .Site.Params.Title }} docs..."> + <input id="userinput" class="form-control is-search" type="search" placeholder="Search docs..." aria-label="Search docs..." autocomplete="off"> + <div id="suggestions" class="shadow bg-white rounded"></div> </form> </div> </div> |