diff options
| author | Nicolas Guichard <nicolas.guichard@ovh.fr> | 2019-10-20 16:32:50 +0200 |
|---|---|---|
| committer | Nicolas Guichard <nicolas.guichard@grenoble-inp.org> | 2019-10-27 13:14:30 +0100 |
| commit | c6af673ff8a7ee8f15f94aa07e7e37f673ce3b4f (patch) | |
| tree | 1a840abff0ddfb47d1afcd5b4ad89d808db6e1d9 /layouts | |
| parent | 91a18a1a92332d3cdfd071b5532716477788e107 (diff) | |
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:`.
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/social-icons.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html index e242218..b89f265 100644 --- a/layouts/partials/social-icons.html +++ b/layouts/partials/social-icons.html @@ -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 -}} |
