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 @@