diff options
| author | Simon Wörner <git@simon-woerner.de> | 2017-09-14 17:11:46 +0200 | 
|---|---|---|
| committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-14 23:11:46 +0800 | 
| commit | 8384f0248367febcf961d2eb2d0c2adff5292d97 (patch) | |
| tree | 61d876eec7cae416882811d618f083c512dea2db /layouts/partials/header.html | |
| parent | d6ac9cd9ce7ed7228461af385982daec4f9524d9 (diff) | |
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://
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f41fdac..4cc13c8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,7 +6,7 @@    <ul id="menu" class="menu">      {{ range .Site.Menus.main -}}        <li class="menu-item"> -        <a class="menu-item-link" href="{{ .URL }}">{{ .Name }}</a> +        <a class="menu-item-link" href="{{ .URL | safeURL }}">{{ .Name }}</a>        </li>      {{- end }}    </ul> | 
