From db6f518520f82288884bc2049e41b45ec41e9c57 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 10 Aug 2024 06:47:41 +0200 Subject: Support for notes --- src/js/love.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js/love.js') diff --git a/src/js/love.js b/src/js/love.js index 59ecccc..b1f8b3b 100644 --- a/src/js/love.js +++ b/src/js/love.js @@ -18,7 +18,7 @@ window.addEventListener("DOMContentLoaded", () => { return `${window.location.origin}/like/${currentArticleName}`; } - const isAnArticle = articles.length === 1; // The front page have multiple articles. + const isAnArticle = window.location.pathname.startsWith("/articles"); if (isAnArticle) { const article = articles[0]; -- cgit v1.2.3-70-g09d2