From 4cf0842964b6dc3897f92535cfa40dc67f1b1158 Mon Sep 17 00:00:00 2001
From: nickjwhite <github@njw.name>
Date: Wed, 03 Jun 2020 14:17:41 +0000
Subject: [PATCH] Use relative URL for favicon (#251)
---
layouts/partials/site-favicon.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/site-favicon.html b/layouts/partials/site-favicon.html
index ffb9642..b7bb9c1 100644
--- a/layouts/partials/site-favicon.html
+++ b/layouts/partials/site-favicon.html
@@ -1,3 +1,3 @@
{{ if .Site.Params.favicon }}
-<link rel="shortcut icon" href="/{{ .Site.Params.favicon }}" type="image/x-icon" />
-{{ end }}
\ No newline at end of file
+<link rel="shortcut icon" href="{{ relURL ($.Site.Params.favicon) }}" type="image/x-icon" />
+{{ end }}
--
Gitblit v1.10.0