mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-09 23:09:47 +00:00
8384f02483
Adding "| safeURL" allows the usage of "unsafe" url protocols such as irc:// or xmpp://
19 lines
No EOL
519 B
HTML
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> |