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:
parent
91a18a1a92
commit
c6af673ff8
1 changed files with 1 additions and 1 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue