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/slideout.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/slideout.html')
-rw-r--r-- | layouts/partials/slideout.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/slideout.html b/layouts/partials/slideout.html index 0ebf0c2..21de3cb 100644 --- a/layouts/partials/slideout.html +++ b/layouts/partials/slideout.html @@ -11,7 +11,7 @@ <nav id="mobile-menu" class="mobile-menu slideout-menu"> <ul class="mobile-menu-list"> {{ range .Site.Menus.main -}} - <a href="{{ .URL }}"> + <a href="{{ .URL | safeURL }}"> <li class="mobile-menu-item">{{ .Name }}</li> </a> {{- end }} |