From dfc20dd715cb85318a58fffd105925b40ebdd3a3 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Sun, 25 Sep 2022 19:25:51 +0200 Subject: [PATCH] Make another thing a component :) Signed-off-by: Sam Therapy --- _config.ts | 14 +++++++------- src/_components/footer.tsx | 17 +++++++++++++++++ src/_data/site.json | 7 +++++-- src/_includes/layouts/main.tsx | 16 ++-------------- src/img/_data.json | 2 +- 5 files changed, 32 insertions(+), 24 deletions(-) create mode 100644 src/_components/footer.tsx diff --git a/_config.ts b/_config.ts index e6b92e6..613a8d3 100644 --- a/_config.ts +++ b/_config.ts @@ -6,15 +6,15 @@ import lightningcss from "lume/plugins/lightningcss.ts"; import sass from "lume/plugins/sass.ts"; const site = lume({ - src: "./src", - dest: "./dist", + src: "./src", + dest: "./dist", }); site - .use(imagick()) - .use(inline()) - .use(jsx_preact()) - .use(lightningcss()) - .use(sass()); + .use(imagick()) + .use(inline()) + .use(jsx_preact()) + .use(lightningcss()) + .use(sass()); export default site; diff --git a/src/_components/footer.tsx b/src/_components/footer.tsx new file mode 100644 index 0000000..cf41486 --- /dev/null +++ b/src/_components/footer.tsx @@ -0,0 +1,17 @@ +import { PageData } from "lume/core.ts"; + +export default (data: { contact: string, name: string, source: string }) => ( + +); diff --git a/src/_data/site.json b/src/_data/site.json index 9f7c72a..0afcf2b 100644 --- a/src/_data/site.json +++ b/src/_data/site.json @@ -1,3 +1,6 @@ { - "endpoint": "froth.zone" -} + "endpoint": "froth.zone", + "source": "https://git.froth.zone/sam/nameservers", + "contact": "https://froth.zone/sam", + "name": "Sam" +} \ No newline at end of file diff --git a/src/_includes/layouts/main.tsx b/src/_includes/layouts/main.tsx index 1049fce..7b05238 100644 --- a/src/_includes/layouts/main.tsx +++ b/src/_includes/layouts/main.tsx @@ -1,7 +1,7 @@ import { PageData } from "https://deno.land/x/lume@v1.11.4/core.ts"; import Favicon from "../../_components/favicon.tsx"; import Image from "../../_components/image.tsx"; - +import Footer from "../../_components/footer.tsx"; export const layout = "layouts/_main.njk"; export default (data: PageData) => ( @@ -16,19 +16,7 @@ export default (data: PageData) => ( -
- - - source - - -
-
- Contact Sam{" "} - if you want to use this nameserver as your own. -
-
-
+