From 5b7a49c087f71881a7ce88c88fa486f6752c957b Mon Sep 17 00:00:00 2001
From: Luiz F. A. de PrĂ¡ <luiz.pra@olist.com>
Date: Wed, 30 Sep 2020 12:36:11 +0000
Subject: [PATCH] Fix nav urls with safeURL filter

---
 layouts/partials/home.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/home.html b/layouts/partials/home.html
index a911ec8..641e555 100644
--- a/layouts/partials/home.html
+++ b/layouts/partials/home.html
@@ -15,13 +15,13 @@
       {{ range sort . "weight" }}
         {{ if .icon }}
           <li>
-            <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }} {{ if .type }}type="{{ .type }}"{{ end }}>
+            <a href="{{ .url | safeURL }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }} {{ if .type }}type="{{ .type }}"{{ end }}>
               <i class="{{ .icon }}" aria-hidden="true"></i>
             </a>
           </li>
         {{ else }}
           <li>
-            <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }}>{{ .name }}</a>
+            <a href="{{ .url | safeURL }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }}>{{ .name }}</a>
           </li>
         {{ end }}
       {{ end }}

--
Gitblit v1.10.0