From 53ca7025407870d0cc27103e0bc2728adc29cb10 Mon Sep 17 00:00:00 2001 From: KazooTTT Date: Thu, 6 Feb 2025 01:14:12 +0800 Subject: [PATCH] fix: style error --- src/components/BaseHead.astro | 5 +- src/components/note/Note.astro | 116 +++++++++++++++++++++++++++++++-- 2 files changed, 113 insertions(+), 8 deletions(-) diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 5620189..a8dadd7 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -15,7 +15,10 @@ const socialImageURL = new URL(ogImage ? ogImage : "/social-card.png", Astro.url --- - + {siteTitle} {/* Icons */} diff --git a/src/components/note/Note.astro b/src/components/note/Note.astro index 1816c4d..6e1c64b 100644 --- a/src/components/note/Note.astro +++ b/src/components/note/Note.astro @@ -3,8 +3,7 @@ import { type CollectionEntry, render } from "astro:content"; 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 { Icon } from "astro-icon/components"; type Props = Polymorphic<{ as: Tag }> & { note: CollectionEntry<"note">; isPreview?: boolean | undefined; @@ -34,10 +33,12 @@ if (modifiedDate && modifiedDate.toDateString() === date.toDateString()) { } --- - { @@ -66,6 +67,107 @@ if (modifiedDate && modifiedDate.toDateString() === date.toDateString()) {
+
{!isPreview && } -
+ + + +