feat: implement Fediverse comments integration

This commit is contained in:
grassblock 2025-05-07 18:26:08 +08:00
parent c09bb95eaa
commit f571670e13
3 changed files with 268 additions and 10 deletions

View file

@ -1,5 +1,7 @@
---
import {siteConfig} from "../config";
import FediverseComments from "./helper/comments/Fediverse.astro";
const method = siteConfig.comments.type
const ArtalkConfig = siteConfig.comments.artalk
const giscusConfig = siteConfig.comments.giscus
@ -7,7 +9,7 @@ interface Props {
path?: string;
}
const { path='/' } = Astro.props;
let { path='/' } = Astro.props;
---
{method === 'artalk' &&
<div>
@ -45,4 +47,5 @@ const { path='/' } = Astro.props;
crossorigin="anonymous"
async
></script>
)}
)}
{method === 'fediverse' && <FediverseComments path={path} /> }