From 56697aa0caeb34e2263c8f71a3437bd18c3112f5 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Tue, 24 Mar 2026 20:39:50 +0200 Subject: [PATCH] added Giscus --- src/components/Giscus.astro | 61 ++++++++ src/components/Welcome.astro | 210 --------------------------- src/layouts/MarkdownPostLayout.astro | 3 + 3 files changed, 64 insertions(+), 210 deletions(-) create mode 100644 src/components/Giscus.astro delete mode 100644 src/components/Welcome.astro diff --git a/src/components/Giscus.astro b/src/components/Giscus.astro new file mode 100644 index 0000000..f98a502 --- /dev/null +++ b/src/components/Giscus.astro @@ -0,0 +1,61 @@ +--- + +--- + +
+

Comments

+ + + + +
diff --git a/src/components/Welcome.astro b/src/components/Welcome.astro deleted file mode 100644 index 1b2cf9c..0000000 --- a/src/components/Welcome.astro +++ /dev/null @@ -1,210 +0,0 @@ ---- -import astroLogo from '../assets/astro.svg'; -import background from '../assets/background.svg'; ---- - -
- -
-
- Astro Homepage -

- To get started, open the
src/pages
directory in your project. -

- -
-
- - - -

What's New in Astro 6.0?

-

- Redesigned dev server, fonts, live collections, built-in CSP support, and more! Click to - explore Astro 6.0's new features. -

-
-
- - diff --git a/src/layouts/MarkdownPostLayout.astro b/src/layouts/MarkdownPostLayout.astro index 73bc58b..a24919a 100644 --- a/src/layouts/MarkdownPostLayout.astro +++ b/src/layouts/MarkdownPostLayout.astro @@ -1,5 +1,6 @@ --- import BaseLayout from "./BaseLayout.astro"; +import Giscus from "@/components/Giscus.astro"; import "@/styles/global.css"; const { frontmatter } = Astro.props; --- @@ -22,6 +23,8 @@ const { frontmatter } = Astro.props; + +