From 4e870b76c9b811386f11a9197aeac9d5a81f051f Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Thu, 15 Jun 2023 23:17:50 +0200 Subject: [PATCH] chore: rework metadata fields --- app/layout.tsx | 14 ++++++++------ config/site.ts | 4 +++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index effd69e..7ac3090 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -3,7 +3,7 @@ import localFont from "next/font/local"; import "@/styles/globals.css"; import { siteConfig } from "@/config/site"; -import { absoluteUrl, cn } from "@/lib/utils"; +import { cn } from "@/lib/utils"; import { Analytics } from "@/components/analytics"; import { TailwindIndicator } from "@/components/tailwind-indicator"; import { ThemeProvider } from "@/components/theme-provider"; @@ -13,13 +13,16 @@ export const metadata = { default: siteConfig.name, template: `%s | ${siteConfig.name}`, }, + metadataBase: new URL(`https://${siteConfig.url}}`), description: siteConfig.description, keywords: [ + "Portfolio", "Next.js", "React", - "Tailwind CSS", - "Server Components", - "Radix UI", + "Azure", + "Kubernetes", + "DevOps", + "Python", ], authors: [ { @@ -27,7 +30,7 @@ export const metadata = { url: siteConfig.url, }, ], - creator: "shadcn", + creator: "bartvdbraak", themeColor: [ { media: "(prefers-color-scheme: light)", color: "white" }, { media: "(prefers-color-scheme: dark)", color: "black" }, @@ -64,7 +67,6 @@ const fontSans = FontSans({ variable: "--font-sans", }); -// Font files can be colocated inside of `pages` const fontHeading = localFont({ src: "../assets/fonts/CalSans-SemiBold.woff2", variable: "--font-heading", diff --git a/config/site.ts b/config/site.ts index 1076851..b4c6a2f 100644 --- a/config/site.ts +++ b/config/site.ts @@ -1,7 +1,9 @@ +import { env } from "@/env.mjs"; + export const siteConfig = { name: "hellob.art", description: "a simple portfolio made by bart van der braak.", - url: "https://hellob.art", + url: env.NEXT_PUBLIC_APP_URL || "https://hellob.art", ogImage: "https://hellob.art/og.jpg", links: { linkedIn: "https://linkedin.com/in/bartvdbraak",