diff --git a/src/components/Comments.astro b/src/components/Comments.astro index af05d36..e6e6bd4 100644 --- a/src/components/Comments.astro +++ b/src/components/Comments.astro @@ -8,15 +8,11 @@ import Giscus from "./helper/comments/Giscus.astro"; const method = siteConfig.comments.type const FediverseConfig = siteConfig.comments.fediverse -interface Props { - path?: string; -} -let { path='/' } = Astro.props; --- -{method === 'artalk' && } -{method === 'giscus' && } +{method === 'artalk' && } +{method === 'giscus' && } -{(method === 'fediverse' && !FediverseConfig.renderOnServer ) && } -{(method === 'fediverse' && FediverseConfig.renderOnServer ) &&

Loading comments...

} +{(method === 'fediverse' && !FediverseConfig.renderOnServer ) && } +{(method === 'fediverse' && FediverseConfig.renderOnServer ) &&

Loading comments...

} {method === 'hatsu' && } \ No newline at end of file diff --git a/src/components/helper/comments/Artalk.astro b/src/components/helper/comments/Artalk.astro index ad52a8b..b39dadb 100644 --- a/src/components/helper/comments/Artalk.astro +++ b/src/components/helper/comments/Artalk.astro @@ -2,12 +2,10 @@ import {siteConfig} from "../../../config"; import 'artalk/Artalk.css'; const ArtalkInstanceDomain = siteConfig.comments.artalk.instanceDomain - -const { path } = Astro.props; ---
-
+