From a8c2c5324ad4feed66205cfed35e29f7357994fb Mon Sep 17 00:00:00 2001 From: Korbs Date: Wed, 11 Dec 2024 20:41:04 -0500 Subject: [PATCH] Make Footer it's own component --- src/components/global/Footer.astro | 23 +++++++++++++++++++++++ src/layouts/Document.astro | 24 ++++-------------------- src/layouts/Splash.astro | 27 ++++----------------------- 3 files changed, 31 insertions(+), 43 deletions(-) create mode 100644 src/components/global/Footer.astro diff --git a/src/components/global/Footer.astro b/src/components/global/Footer.astro new file mode 100644 index 0000000..137bd3c --- /dev/null +++ b/src/components/global/Footer.astro @@ -0,0 +1,23 @@ +--- +// Settings +import { SiteSettings, FeelbackConfig } from '@config' +import {version} from '../../../package.json' +--- + + \ No newline at end of file diff --git a/src/layouts/Document.astro b/src/layouts/Document.astro index d90c2de..3e123d2 100755 --- a/src/layouts/Document.astro +++ b/src/layouts/Document.astro @@ -1,7 +1,6 @@ --- // Settings -import { SiteSettings, FeelbackConfig } from '@config' -import {version} from '../../package.json' +import { FeelbackConfig } from '@config' // Properties const { frontmatter, Title, Feedback, Feelback } = Astro.props @@ -9,6 +8,7 @@ const { frontmatter, Title, Feedback, Feelback } = Astro.props // Components import Head from '@components/global/Head.astro' import Header from '@components/global/Header.astro' +import Footer from '@components/global/Footer.astro' import Sidebar from '@components/Sidebar.astro' import FeelbackYesNo from "astro-feelback/components/FeelbackYesNo.astro" import {Zorn} from "@minpluto/zorn" @@ -41,25 +41,9 @@ import "@styles/prism.css" } - +