gmgauthier.com/themes/blackburn/layouts/partials/sidemenu.html

36 lines
956 B
HTML
Raw Normal View History

2021-03-30 20:50:34 +00:00
<!-- Menu toggle -->
<a href="#menu" id="menuLink" class="menu-link">
<!-- Hamburger icon -->
<span></span>
</a>
<div id="menu">
{{ partial "brand.html" . }}
<div class="pure-menu">
<ul class="pure-menu-list">
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<li class="pure-menu-item pure-menu-has-children">
<a class="pure-menu-link" href="#">{{ .Pre }}{{ .Name }}</a>
<ul class="pure-menu-children">
{{ range .Children }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
{{else}}
<li class="pure-menu-item">
<a class="pure-menu-link" {{ printf "href=%q" .URL | safeHTMLAttr }}>{{ .Pre }}{{ .Name }}</a>
{{end}}
</li>
{{end}}
</ul>
</div>
{{ partial "social.html" . }}
{{ partial "copyright.html" . }}
</div>