summaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/Base.astro22
-rw-r--r--src/layouts/Index.astro26
-rw-r--r--src/layouts/Page.astro10
3 files changed, 0 insertions, 58 deletions
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro
deleted file mode 100644
index c60347c..0000000
--- a/src/layouts/Base.astro
+++ /dev/null
@@ -1,22 +0,0 @@
----
-import Footer from "@components/Footer.astro";
-import Head from "@components/Head.astro";
-import Nav from "@components/Nav.astro";
-
-const { title, description } = Astro.props.frontmatter || Astro.props;
----
-
-<!doctype html>
-<html lang="en">
- <Head title={title} description={description} />
- <body>
- <h1><b>getchoo's website 🚀</b></h1>
- <slot name="nav">
- <Nav />
- </slot>
- <slot />
- <slot name="footer">
- <Footer />
- </slot>
- </body>
-</html>
diff --git a/src/layouts/Index.astro b/src/layouts/Index.astro
deleted file mode 100644
index e4b3d50..0000000
--- a/src/layouts/Index.astro
+++ /dev/null
@@ -1,26 +0,0 @@
----
-import gifs from "@assets/gifs";
-import Base from "@layouts/Base.astro";
-import Picture from "astro/components/Picture.astro";
-
-const { title, description } = Astro.props.frontmatter;
----
-
-<Base title={title} description={description}>
- <slot />
- <div id="gifs">
- {
- gifs.map(({ image, alt }) => {
- const img = <Picture src={image} alt={alt} formats={["gif"]} />;
-
- if (image.src.includes("steam")) {
- return <a href="https://dnsense.pub/">{img}</a>;
- } else if (image.src.includes("poweredbynix")) {
- return <a href="https://github.com/sakecode">{img}</a>;
- } else {
- return img;
- }
- })
- }
- </div>
-</Base>
diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro
deleted file mode 100644
index e740d36..0000000
--- a/src/layouts/Page.astro
+++ /dev/null
@@ -1,10 +0,0 @@
----
-import Base from "@layouts/Base.astro";
-const { title, description } = Astro.props.frontmatter || Astro.props;
----
-
-<Base title={title} description={description}>
- <div class="blogpost">
- <slot />
- </div>
-</Base>