diff options
author | Justin Phelps <juphelps@netflix.com> | 2017-08-16 20:00:39 +0300 |
---|---|---|
committer | Justin Phelps <juphelps@netflix.com> | 2017-08-16 20:00:39 +0300 |
commit | 2aae9c6cf5adc4af99cf29edb4cf17f9d1d8f1fa (patch) | |
tree | 14cf846235d8fef2641da1faeb2c1903f8491b23 | |
parent | 307ad99b0ff51a3641d7792ddf4941a650e4cd92 (diff) |
Per issue #49 safeHTMLAttr
Allow for xdg style links like bitcoin: or irc: in the
sidemenu.html file.
-rw-r--r-- | layouts/partials/sidemenu.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/sidemenu.html b/layouts/partials/sidemenu.html index 07a07a2..87fa03c 100644 --- a/layouts/partials/sidemenu.html +++ b/layouts/partials/sidemenu.html @@ -22,7 +22,7 @@ </ul> {{else}} <li class="pure-menu-item"> - <a class="pure-menu-link" href="{{ .URL }}">{{ .Pre }}{{ .Name }}</a> + <a class="pure-menu-link" {{ printf "href=%q" .URL | safeHTMLAttr }}>{{ .Pre }}{{ .Name }}</a> {{end}} </li> {{end}} |