First iteration of blog
Some checks failed
GitHub Pages / deploy (push) Has been cancelled
GitHub Pages / build (push) Has been cancelled

This commit is contained in:
2024-10-14 00:18:50 -05:00
parent 336b7b579a
commit 081f5b1f67
112 changed files with 18927 additions and 124 deletions

22
components/Comments.tsx Normal file
View File

@@ -0,0 +1,22 @@
'use client'
import { Comments as CommentsComponent } from 'pliny/comments'
import { useState } from 'react'
import siteMetadata from '@/data/siteMetadata'
export default function Comments({ slug }: { slug: string }) {
const [loadComments, setLoadComments] = useState(false)
if (!siteMetadata.comments?.provider) {
return null
}
return (
<>
{loadComments ? (
<CommentsComponent commentsConfig={siteMetadata.comments} slug={slug} />
) : (
<button onClick={() => setLoadComments(true)}>Load Comments</button>
)}
</>
)
}