summaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/love.js2
1 files changed, 1 insertions, 1 deletions
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];