From 5e3380232d9eed17a96bdf812f75f17aec499a4b Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 4 May 2024 11:46:33 +0200 Subject: [PATCH] feat: remove js-naked-day; restore scripts --- _includes/head.html | 56 +++++++++---------- _includes/header.html | 5 -- _layouts/default.html | 12 ++-- ...23-07-09-starting-film-discs-collection.md | 4 +- _posts/2023-07-13-obscure-services-i-use.md | 2 - 5 files changed, 33 insertions(+), 46 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 86d5b0f..3b880e9 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -73,34 +73,32 @@ rel="stylesheet" /> - + const ignorePaths = [ + "/", + "/categories/", + "/about/", + "/technology/", + "/personal/", + "/projects/", + "/talks/", + "/productivity/", + "/motivational/", + ]; + const url = new URL( + document.URL.replace("http://localhost:4000", "https://ayos.blog") + ); + if (!ignorePaths.includes(url.pathname)) { + const mentions = getMentions(url.toString()) + .then((mentions) => { + renderMentions(mentions, ".blog-post__web-mentions"); + }) + .catch((err) => console.log("err", err)); + } + diff --git a/_includes/header.html b/_includes/header.html index 84595ae..6991d5f 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -45,8 +45,3 @@ {% endif %} - diff --git a/_layouts/default.html b/_layouts/default.html index 6a97784..8563479 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -24,13 +24,11 @@
diff --git a/_posts/2023-07-09-starting-film-discs-collection.md b/_posts/2023-07-09-starting-film-discs-collection.md index c72ff03..a61509a 100644 --- a/_posts/2023-07-09-starting-film-discs-collection.md +++ b/_posts/2023-07-09-starting-film-discs-collection.md @@ -18,6 +18,4 @@ I keep a thread open on [Mastodon](https://social.ayco.io/@ayo/11063972899041691 - + diff --git a/_posts/2023-07-13-obscure-services-i-use.md b/_posts/2023-07-13-obscure-services-i-use.md index 9ea3f55..d9b069a 100644 --- a/_posts/2023-07-13-obscure-services-i-use.md +++ b/_posts/2023-07-13-obscure-services-i-use.md @@ -24,9 +24,7 @@ So when the December holidays came, I spent some time and resources to set up [m - ## It Didn't Stop There