diff --git a/docs/src/components/Content.astro b/docs/src/components/Content.astro index 05c66ee..0bfc0fe 100644 --- a/docs/src/components/Content.astro +++ b/docs/src/components/Content.astro @@ -3,7 +3,7 @@ import type { Props } from '@astrojs/starlight/props'; import Default from '@astrojs/starlight/components/MarkdownContent.astro'; const slug = Astro.props.slug; -const renderCommentSection = !(['', 'challenges/testing', 'challenges/angular-performance']).includes(slug) +const renderCommentSection = !Astro.props.entry.data.noCommentSection; --- @@ -12,6 +12,8 @@ const renderCommentSection = !(['', 'challenges/testing', 'challenges/angular-pe
+{Astro.props.entry.data.custom} + { renderCommentSection ?