summaryrefslogtreecommitdiff
path: root/src/js/love.js
diff options
context:
space:
mode:
authorache <ache@ache.one>2024-08-10 06:47:41 +0200
committerache <ache@ache.one>2024-08-10 06:47:41 +0200
commitdb6f518520f82288884bc2049e41b45ec41e9c57 (patch)
tree77e321d48f2f9fb61b4b85af4ebd5dd569fbc00a /src/js/love.js
parentUpdate smol-toml (diff)
Support for notes
Diffstat (limited to 'src/js/love.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];