Integrating header with each page, removing bottom section of section-app-header template, fixing a few bugs
This commit is contained in:
parent
dfc8175367
commit
4a881df172
8 changed files with 60 additions and 22 deletions
|
@ -1,18 +1,19 @@
|
|||
<nav>
|
||||
{{ $white := .Params.HeaderTextWhite }}
|
||||
<nav class="{{ if $white }}dark{{ end }} {{ if $white }}text-white{{ end }}">
|
||||
<div class="center nav-flex">
|
||||
{{ $currentPage := . }}
|
||||
<div class="nav-mobile">
|
||||
<div class="nav-mobile ">
|
||||
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}" role="button">
|
||||
<img src="/img/icon.png" class="icon-brand" alt=""/>
|
||||
Ad5001
|
||||
</a>
|
||||
|
||||
<button id="navbar-toggler">
|
||||
<img src="/icons/menu.svg" class=""/>
|
||||
<img src="/icons/menu.svg" class="icon-monochrome"/>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="navbar-menu">
|
||||
<div class="navbar-menu {{ if $white }}dark{{ end }}">
|
||||
<ul class="navbar-list">
|
||||
{{ range .Site.Menus.main.ByWeight }}
|
||||
{{ if .HasChildren }}
|
||||
|
@ -47,11 +48,11 @@
|
|||
<div class="menu-with-sub">
|
||||
<a href="#" role="button">
|
||||
<li>
|
||||
<img src="/icons/lang.svg" class="icon-as-text"/>
|
||||
<img src="/icons/lang.svg" class="icon-as-text icon-monochrome"/>
|
||||
<span>{{ i18n "language" }}</span>
|
||||
</li>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<ul class="sub-menu center dark">
|
||||
{{ range .Translations }}
|
||||
<a href="{{ .Permalink }}" role="button">
|
||||
<li class="background">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue