socialIcons, fix: apply safeURL to make all URI schemes work (#1266)

This commit is contained in:
Andreas Deininger authored and GitHub committed 2023-07-23 14:02:18 +05:30
1 parent 74d288ff94
commit 61bf918a0d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<div class="social-icons">
{{- range . }}
<a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ (.title | default .name) | title }}">
<a href="{{ trim .url " " | safeURL }}" target="_blank" rel="noopener noreferrer me" title="{{ (.title | default .name) | title }}">
{{ partial "svg.html" . }}
</a>
{{- end }}