diff options
author | ache <ache@ache.one> | 2024-08-10 06:47:41 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2024-08-10 06:47:41 +0200 |
commit | db6f518520f82288884bc2049e41b45ec41e9c57 (patch) | |
tree | 77e321d48f2f9fb61b4b85af4ebd5dd569fbc00a /src/js | |
parent | Update smol-toml (diff) |
Support for notes
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/love.js | 2 |
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]; |