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

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Guerrero Ibarra <wolf.fox1985@gmail.com>2021-09-06 00:40:02 +0300
committerGitHub <noreply@github.com>2021-09-06 00:40:02 +0300
commita66012965897579f404593ef4a8808a5e5620925 (patch)
treec56c230b33b1c60b88dc42a17e17db195d2ef010 /layouts
parent152f9787d9078c5aed3ecb8c9b3f455934ff9657 (diff)
Safe topbar links. (#324)1.2.4
Co-authored-by: Guillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk>
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/top.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/top.html b/layouts/partials/top.html
index fd4b7a9..25351ad 100644
--- a/layouts/partials/top.html
+++ b/layouts/partials/top.html
@@ -9,7 +9,7 @@
<div class="col-xs-7">
<div class="social">
{{ range .Site.Menus.topbar.ByWeight }}
- <a href="{{ .URL }}" target="_blank" style="opacity: 1;">{{ .Pre }}</a>
+ <a href="{{ .URL | safeURL }}" target="_blank" style="opacity: 1;">{{ .Pre }}</a>
{{ end }}
</div>
</div>