Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMakise Von <v.makise@foxmail.com>2021-11-16 16:01:57 +0300
committerGitHub <noreply@github.com>2021-11-16 16:01:57 +0300
commit72212b2dd61224aeacf84d0f327ed5291e7bbc9b (patch)
tree24dc1ef8f5da23a7e9819eadd8a7d2e55b8cf39b
parented7e68ba0f5b4b6dbe3a246810bef682735d0900 (diff)
fix: declares the social url as a safe url (#354)
[safeURL](https://gohugo.io/functions/safeurl/) closes #353
-rw-r--r--layouts/partials/components/socials.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/components/socials.html b/layouts/partials/components/socials.html
index 623b1e7..89412ad 100644
--- a/layouts/partials/components/socials.html
+++ b/layouts/partials/components/socials.html
@@ -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>