From 49d4ab5bf8b5f58d6a855ddcd8584078b2c14fe2 Mon Sep 17 00:00:00 2001 From: Norbert Melzer Date: Sun, 2 Jul 2023 23:24:35 +0200 Subject: [PATCH] refactor: use author page for about --- src/components/layout.tsx | 2 +- src/pages/about.tsx | 15 --------------- tests/components/layout.test.tsx | 2 +- 3 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 src/pages/about.tsx diff --git a/src/components/layout.tsx b/src/components/layout.tsx index 9914fec..59e267b 100644 --- a/src/components/layout.tsx +++ b/src/components/layout.tsx @@ -31,7 +31,7 @@ export const Layout = ({ className, pageTitle, children }: LayoutProps) => { Tags
  • - About + About
  • diff --git a/src/pages/about.tsx b/src/pages/about.tsx deleted file mode 100644 index a6cc485..0000000 --- a/src/pages/about.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import * as React from "react"; - -import { Layout, Seo } from "~components"; - -const AboutPage = () => ( - -

    - Hi there! I'm the proud creator of this site, which I built with Gatsby. -

    -
    -); - -export const Head = () => ; - -export default AboutPage; diff --git a/tests/components/layout.test.tsx b/tests/components/layout.test.tsx index 5867248..48ff320 100644 --- a/tests/components/layout.test.tsx +++ b/tests/components/layout.test.tsx @@ -65,7 +65,7 @@ describe("Layout component", () => { const navLinks = { Blog: "/", Tags: "/tags", - About: "/about", + About: "/author/nobbz", }; for (const [name, path] of Object.entries(navLinks)) {