refactor: remove CI workflows and integrate share buttons

This commit is contained in:
KazooTTT
2025-02-07 00:08:13 +08:00
parent f7980be491
commit 4b5897d856
5 changed files with 13 additions and 91 deletions

View File

@ -4,6 +4,7 @@ import FormattedDate from "@/components/FormattedDate.astro";
import type { HTMLTag, Polymorphic } from "astro/types";
import GiscusComment from "@/components/componentsBefore/GiscusComment";
import ArticleContainer from "../ArticleContainer.astro";
import ShareButtons from "../ShareButtons.astro";
type Props<Tag extends HTMLTag> = Polymorphic<{ as: Tag }> & {
note: CollectionEntry<"note">;
isPreview?: boolean | undefined;
@ -68,5 +69,13 @@ if (modifiedDate && modifiedDate.toDateString() === date.toDateString()) {
<Content />
</div>
</div>
{!isPreview && <GiscusComment client:load />}
{
!isPreview && (
<div class="mt-8 border-t pt-4">
<ShareButtons />
</div>
)
}
</ArticleContainer>