From bae600744eb403bf9646f2752ab8a3dbe717c354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Peixoto?= Date: Thu, 8 Apr 2021 21:04:02 +0100 Subject: [PATCH] fix: update discourse condition to show comments --- src/.vuepress/theme/layouts/BlogPost.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/.vuepress/theme/layouts/BlogPost.vue b/src/.vuepress/theme/layouts/BlogPost.vue index 552787f0..8c954a05 100644 --- a/src/.vuepress/theme/layouts/BlogPost.vue +++ b/src/.vuepress/theme/layouts/BlogPost.vue @@ -61,15 +61,11 @@ export default { } this.showComments = + !!ipfsPathPrefix || + window.location.hostname.includes('.ipns.localhost') || window.location.hostname === 'blog.ipfs.io' || - window.location.hostname === 'blog.ipfs.io.ipns.localhost:8080' || - window.location.hostname === '127.0.0.1:8080/ipns/blog.ipfs.io/' || window.location.hostname === 'ipfs-blog.on.fleek.co' || - window.location.hostname === - 'ipfs-blog.on.fleek.co.ipns.localhost:8080' || - window.location.hostname === 'ipfs-blog-staging.on.fleek.co' || - window.location.hostname === - 'ipfs-blog-staging.on.fleek.co.ipns.localhost:8080' + window.location.hostname === 'ipfs-blog-staging.on.fleek.co' }, }