hugo-theme-even/layouts/partials/header.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

13 lines
No EOL
340 B
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>