From 247b4cb05a2e54e0b0144cb081f26e545b8c68fc Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Mon, 18 Dec 2023 12:50:57 -0600 Subject: [PATCH] feat(web): metas A centralization of data, then dispersion. --- src/components/Footer.tsx | 7 +-- src/components/Header.tsx | 3 +- src/components/Meta.tsx | 35 ++++++++++++++ src/components/Title.tsx | 12 +++++ src/islands/HeaderMenu.tsx | 14 +++--- src/routes/_404.tsx | 9 ++-- src/routes/_500.tsx | 9 ++-- src/routes/_app.tsx | 58 ++++++++++++++++++------ src/routes/about.tsx | 7 ++- src/routes/green/index.tsx | 5 +- src/routes/index.tsx | 8 +++- src/routes/monies/guarantees-in-life.tsx | 7 ++- src/routes/monies/index.tsx | 5 +- src/site.ts | 24 ++++++++++ src/static/manifest.webmanifest | 7 +++ src/static/sitemap.xml | 7 +++ 16 files changed, 177 insertions(+), 40 deletions(-) create mode 100644 src/components/Meta.tsx create mode 100644 src/components/Title.tsx create mode 100644 src/site.ts create mode 100644 src/static/manifest.webmanifest create mode 100644 src/static/sitemap.xml diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 0fe896c6..fd4b1cd1 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -4,6 +4,7 @@ import IconSolarPanel2 from "tabler_icons_tsx/solar-panel-2.tsx"; import IconBrandTailwind from "tabler_icons_tsx/brand-tailwind.tsx"; import IconBrandReact from "tabler_icons_tsx/brand-react.tsx"; import type { FunctionalComponent } from "preact"; +import { siteName, slogan } from "../site.ts"; const Footer: FunctionalComponent = () => { const menus = [ @@ -55,10 +56,10 @@ const Footer: FunctionalComponent = () => { class="inline-block dark:text-white" aria-hidden="true" /> -
Why Switch
+
{siteName}
- The Truth about Going Green! + {slogan}
@@ -78,7 +79,7 @@ const Footer: FunctionalComponent = () => {
  • {child.name} diff --git a/src/components/Header.tsx b/src/components/Header.tsx index dca5dbb7..1ab1309d 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,6 +1,7 @@ import IconSolarPanel2 from "tabler_icons_tsx/solar-panel-2.tsx"; import type { FunctionalComponent } from "preact"; import HeaderMenu from "../islands/HeaderMenu.tsx"; +import { siteName } from "../site.ts"; interface Props { active: string; // TODO(lishaduck): https://deno.com/blog/fresh-1.5#easier-active-link-styling @@ -39,7 +40,7 @@ const Header: FunctionalComponent = ({ active }: Props) => {