docs(comment section): add custom config

This commit is contained in:
thomas
2023-10-13 22:58:07 +02:00
parent ffba1ecf78
commit 7437914e50
6 changed files with 14 additions and 4 deletions

View File

@@ -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
<div class="border-t"></div>
{Astro.props.entry.data.custom}
{ renderCommentSection
?
<script src="https://giscus.app/client.js"