From 816ac1b14321d1a28727b67466035e5879ed7f42 Mon Sep 17 00:00:00 2001 From: Colin <1580440944@qq.com> Date: Tue, 23 Nov 2021 22:08:57 +0800 Subject: [PATCH] use decoded uri as key --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index efa0074..931b8d2 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -41,7 +41,7 @@ repo: 'Colinx-Blog', // The repository of store comments, owner: 'Colin-XKL', admin: ['Colin-XKL'], - id: location.pathname, // Ensure uniqueness and length less than 50 + id: decodeURI(location.pathname), // Ensure uniqueness and length less than 50 distractionFreeMode: false // Facebook-like distraction free mode }); gitalk.render('gitalk-container');