diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-10-21 10:52:23 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-10-21 10:52:23 +0200 |
commit | de8ca7e4d4313ce84f4c97bbdcea83f871f9e3c9 (patch) | |
tree | 6b55cf176030fbb5091f04a424674d3114db9ff1 /docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/nav-links.html | |
parent | ec5962278f394654fd17df35bbfceb19702553dd (diff) | |
parent | 5ac0f751aa47e52625662215f66efa99a6abfc2e (diff) |
Merge commit '5ac0f751aa47e52625662215f66efa99a6abfc2e'
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/nav-links.html')
-rw-r--r-- | docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/nav-links.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/nav-links.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/nav-links.html new file mode 100644 index 000000000..af3790b16 --- /dev/null +++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/nav-links.html @@ -0,0 +1,37 @@ +{{ $currentPage := . }} +{{ $.Scratch.Add "listlinkClasses" "f6 link primary-color-dark hover-white db brand-font ma0 w-100 pv3 ph4" }} + +<!-- TODO: Not getting ismenucurrent --> + +<ul class="list dib ph0 ma0 scrolling-touch tc"> + {{ range .Site.Menus.main }} + <li class="tl-l dib ma0 hover-bg-black w-100{{ if .HasChildren }} dont-display-child-until-click{{end}}"> + + {{ if .HasChildren }} + <a href="#{{ .Name | urlize }}" class="ttu {{ $.Scratch.Get "listlinkClasses" }}{{if $currentPage.IsMenuCurrent "main" . }} o-50{{end}}"> + {{ .Name }} + <!-- <img src="/images/ic_keyboard_arrow_down_white_24px.svg" alt="" class="static v-mid f6 ma0 pa0"> --> + </a> + <ul id="{{ .Name | urlize}}" class="list pa0 ma0"> + <li class="ma0 pl3 brand-font"> + <a href="{{.URL}}" class="{{ $.Scratch.Get "listlinkClasses" }}{{if $currentPage.IsMenuCurrent "main" . }} o-50{{end}}"> + {{ .Name }} Overview + </a> + </li> + {{ range .Children }} + <li class="ma0 pl3 brand-font{{if $currentPage.IsMenuCurrent "main" . }} o-50{{end}}"> + <a href="{{.URL}}" class="{{ $.Scratch.Get "listlinkClasses" }}"> + {{ .Name }} + </a> + </li> + {{ end }} + </ul> + {{ else }} + <a href="{{.URL}}" class="ttu {{ $.Scratch.Get "listlinkClasses" }}{{if $currentPage.IsMenuCurrent "main" . }} bg-primary-color{{end}}"> + {{ .Name }} + </a> + {{end}} + + </li> + {{end}} +</ul> |