--- import { siteConfig } from '@/site.config'; interface Props { enabled: boolean; path?: string; } const { enabled, path } = Astro.props; const comments = siteConfig.comments; const config = comments.provider === 'twikoo' && comments.envId.trim() ? { envId: comments.envId, lang: comments.lang ?? siteConfig.site.locale, path: comments.path ?? path ?? Astro.url.pathname, ...(comments.envId.startsWith('http') ? {} : { region: comments.region }) } : null; --- {enabled && config &&

评论

} {enabled && !config &&

评论

Twikoo 尚未配置

暂无评论

}