feat: implement Fediverse comments integration
This commit is contained in:
parent
c09bb95eaa
commit
f571670e13
3 changed files with 268 additions and 10 deletions
|
@ -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} /> }
|
Loading…
Add table
Add a link
Reference in a new issue