From 671da2381e4422cc5117b354bd9a2c84cfe8d6e4 Mon Sep 17 00:00:00 2001
From: Ziwei Wang <ziwei.wang@savoirfairelinux.com>
Date: Thu, 24 Aug 2023 17:55:03 -0400
Subject: [PATCH] Fix: use dynamic path for _static

Change-Id: Ic91ea8372f971b23bc71eadfc2eeab4387b7d7db
---
 _templates/layout.html | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/_templates/layout.html b/_templates/layout.html
index e9fa7232..4df60f52 100644
--- a/_templates/layout.html
+++ b/_templates/layout.html
@@ -49,11 +49,11 @@
   {%- if favicon_url or favicon %}
     <link rel="shortcut icon" href="{{ _favicon_url }}"/>
   {%- endif %}
-  <link rel="shortcut icon" type="image/png" href="_static/favicon-16x16.png" sizes="16x16"/>
-  <link rel="shortcut icon" type="image/png" href="_static/favicon-32x32.png" sizes="32x32"/>
-  <link rel="shortcut icon" type="image/png" href="_static/favicon-96x96.png" sizes="96x96"/>
-  <link rel="shortcut icon" type="image/png" href="_static/favicon-128x128.png" sizes="128x128"/>
-  <link rel="shortcut icon" type="image/png" href="_static/favicon-196x196.png" sizes="196x196"/>
+  <link rel="shortcut icon" type="image/png" href="{{pathto('_static/' + 'favicon-16x16.png', 1)}}" sizes="16x16"/>
+  <link rel="shortcut icon" type="image/png" href="{{pathto('_static/' + 'favicon-32x32.png', 1)}}" sizes="32x32"/>
+  <link rel="shortcut icon" type="image/png" href="{{pathto('_static/' + 'favicon-96x96.png', 1)}}" sizes="96x96"/>
+  <link rel="shortcut icon" type="image/png" href="{{pathto('_static/' + 'favicon-128x128.png', 1)}}" sizes="128x128"/>
+  <link rel="shortcut icon" type="image/png" href="{{pathto('_static/' + 'favicon-196x196.png', 1)}}" sizes="196x196"/>
 
   {#- CANONICAL URL (deprecated) #}
   {%- if theme_canonical_url and not pageurl %}
-- 
GitLab