Skip to content

Commit

Permalink
fix: declares the social url as a safe url (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
makisevon committed Nov 16, 2021
1 parent ed7e68b commit 72212b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/components/socials.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul class="socials">
{{- range sort .socials "weight" -}}
<li class="socials-item">
<a href="{{ .url }}" target="_blank" rel="external noopener" title="{{ .title }}">
<a href="{{ .url | safeURL }}" target="_blank" rel="external noopener" title="{{ .title }}">
{{- partial "utils/icon.html" (dict "$" $ "name" .icon "class" "social-icon") -}}
</a>
</li>
Expand Down

0 comments on commit 72212b2

Please sign in to comment.