Add safeURL on social icons links

The social icon links are generated from developer-controlled config.toml file. They can be considered safe.
This enables using various URI schemes such as `tel:`, `sip:`, `geo:` or `whatever:`.
This commit is contained in:
Nicolas Guichard 2019-10-20 16:32:50 +02:00 committed by Nicolas Guichard
parent 91a18a1a92
commit c6af673ff8
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
{{ range . -}}
<a href="{{ .url }}" target="_blank" rel="noopener me" title="{{ .name | humanize }}">{{ partial "svg.html" . }}</a>
<a href="{{ .url | safeURL }}" target="_blank" rel="noopener me" title="{{ .name | humanize }}">{{ partial "svg.html" . }}</a>
{{- end -}}