diff --git a/src/assets/roboto-mono-700.ttf b/src/assets/roboto-mono-700.ttf deleted file mode 100644 index 180a726..0000000 Binary files a/src/assets/roboto-mono-700.ttf and /dev/null differ diff --git a/src/assets/roboto-mono-regular.ttf b/src/assets/roboto-mono-regular.ttf deleted file mode 100644 index de0f485..0000000 Binary files a/src/assets/roboto-mono-regular.ttf and /dev/null differ diff --git a/src/components/ArticleContainer.astro b/src/components/ArticleContainer.astro new file mode 100644 index 0000000..fea56fd --- /dev/null +++ b/src/components/ArticleContainer.astro @@ -0,0 +1,87 @@ +--- +import { Icon } from "astro-icon/components"; + +export interface Props { + className?: string; + dataPagefindBody?: boolean; +} +const { className = "", dataPagefindBody = true } = Astro.props; +--- + +
+ + + +
+ + + + diff --git a/src/components/note/Note.astro b/src/components/note/Note.astro index 95a5ec8..29a88f6 100644 --- a/src/components/note/Note.astro +++ b/src/components/note/Note.astro @@ -3,6 +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"; type Props = Polymorphic<{ as: Tag }> & { note: CollectionEntry<"note">; isPreview?: boolean | undefined; @@ -32,12 +33,10 @@ if (modifiedDate && modifiedDate.getTime() === date.getTime()) { } --- -
{ @@ -71,4 +70,4 @@ if (modifiedDate && modifiedDate.getTime() === date.getTime()) { {!isPreview && } -
+ diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro index 1a04817..09940f9 100644 --- a/src/layouts/BlogPost.astro +++ b/src/layouts/BlogPost.astro @@ -6,6 +6,7 @@ import TOC from "@/components/blog/TOC.astro"; import WebMentions from "@/components/blog/webmentions/index.astro"; import GiscusComment from "@/components/componentsBefore/GiscusComment"; import BaseLayout from "./Base.astro"; +import ArticleContainer from "@/components/note/ArticleContainer.astro"; interface Props { post: CollectionEntry<"post">; @@ -36,7 +37,7 @@ const readingTime: string = remarkPluginFrontmatter.readingTime; tags: [category, ...tags].join(", "), }} > -
+
{!!headings.length && } @@ -48,7 +49,7 @@ const readingTime: string = remarkPluginFrontmatter.readingTime;
-
+