hugo-theme-even/layouts/partials/slideout.html
Simon Wörner 8384f02483 fix: allow all url protocols in social and menu links (#4)
Adding "| safeURL" allows the usage of "unsafe" url protocols such as irc:// or xmpp://
2017-09-14 23:11:46 +08:00

19 lines
No EOL
519 B
HTML

<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="{{ "/" | relURL }}" class="logo">{{ .Site.Title }}</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>