mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-09 04:06:37 -05:00
ec4e6f9df2
git-subtree-dir: docs git-subtree-split: f887bd7b4e3e7c7e76cd63951e5b0d37d8fe0ac7
11 lines
515 B
HTML
11 lines
515 B
HTML
{{ $currentPage := . }}
|
|
{{ $menu := .Site.Menus.docs.ByWeight }}
|
|
<ul class="list dib ph0 ma0 scrolling-touch tc">
|
|
{{ range $menu }}{{ $post := printf "%s" .Post }}
|
|
<li class="tl dib ma0 hover-bg-black w-100{{ if eq $post "break" }} mb2 bb b--mid-gray{{ end }}">
|
|
<a href="{{.URL}}" class="ttu f6 link primary-color-light hover-white db brand-font mb1 ma0 w-100 pv2 ph4{{if $currentPage.IsMenuCurrent "main" . }} bg-primary-color{{end}}">
|
|
{{ .Name }}
|
|
</a>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|