From ddc6d3cdd7604df175c97dbcf1367c6a504092f9 Mon Sep 17 00:00:00 2001 From: Dave Huseby Date: Wed, 24 Apr 2024 07:26:42 -0600 Subject: [PATCH] disable comments on blog posts for now Signed-off-by: Dave Huseby --- src/.vuepress/theme/layouts/BlogPost.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/.vuepress/theme/layouts/BlogPost.vue b/src/.vuepress/theme/layouts/BlogPost.vue index f466ba0a..9bdd2365 100644 --- a/src/.vuepress/theme/layouts/BlogPost.vue +++ b/src/.vuepress/theme/layouts/BlogPost.vue @@ -23,7 +23,7 @@ itemprop="articleBody" class="blog type-rich mb-10 mt-4 pt-4 border-t-2 border-gray border-opacity-25 px-2 sm:px-6 md:px-0" /> - + @@ -33,7 +33,7 @@ import Layout from '@theme/layouts/Layout.vue' import LazyImage from '@theme/components/base/LazyImage' import PostHero from '@theme/components/blog/PostHero' -import Comments from '@theme/components/blog/Comments' +//import Comments from '@theme/components/blog/Comments' export default { name: 'BlogPost', @@ -41,11 +41,13 @@ export default { Layout, LazyImage, PostHero, - Comments, + //Comments, }, + /* data: () => ({ showComments: null, }), + */ computed: { // hidden field set in plugins/pageData.js isVisible() { @@ -82,12 +84,14 @@ export default { }) } + /* this.showComments = !!ipfsPathPrefix || window.location.hostname.includes('.ipns.localhost') || window.location.hostname === 'blog.libp2p.io' || window.location.hostname === 'libp2p-blog.on.fleek.co' || window.location.hostname === 'libp2p-blog-staging.on.fleek.co' + */ }, }