hugo-theme-even/layouts/partials/slideout.html
2017-09-16 17:49:53 +08:00

25 lines
No EOL
647 B
HTML

<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="{{ "/" | relURL }}" class="logo">
{{- if .Site.Params.logoTitle -}}
{{ .Site.Params.logoTitle }}
{{- else -}}
{{ .Site.Title }}
{{- end -}}
</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
{{ range .Site.Menus.main -}}
<a href="{{ .URL | safeURL }}">
<li class="mobile-menu-item">{{ .Name }}</li>
</a>
{{- end }}
</ul>
</nav>