mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-12 16:19:45 +00:00
8384f02483
Adding "| safeURL" allows the usage of "unsafe" url protocols such as irc:// or xmpp://
13 lines
No EOL
340 B
HTML
13 lines
No EOL
340 B
HTML
<div class="logo-wrapper">
|
||
<a href="{{ "/" | relURL }}" class="logo">{{ .Site.Title }}</a>
|
||
</div>
|
||
|
||
<nav class="site-navbar">
|
||
<ul id="menu" class="menu">
|
||
{{ range .Site.Menus.main -}}
|
||
<li class="menu-item">
|
||
<a class="menu-item-link" href="{{ .URL | safeURL }}">{{ .Name }}</a>
|
||
</li>
|
||
{{- end }}
|
||
</ul>
|
||
</nav> |