Skip to content

Commit

Permalink
disable comments on blog posts for now
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Huseby <dwh@linuxprogrammer.org>
  • Loading branch information
dhuseby committed Apr 24, 2024
1 parent 34e3452 commit ddc6d3c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/.vuepress/theme/layouts/BlogPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
<Comments v-if="showComments" />
<!-- <Comments v-if="showComments" /> -->
</div>
</article>
</Layout>
Expand All @@ -33,19 +33,21 @@
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',
components: {
Layout,
LazyImage,
PostHero,
Comments,
//Comments,
},
/*
data: () => ({
showComments: null,
}),
*/
computed: {
// hidden field set in plugins/pageData.js
isVisible() {
Expand Down Expand Up @@ -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'
*/
},
}
</script>
Expand Down

0 comments on commit ddc6d3c

Please sign in to comment.