|
| 1 | +import type { Metadata } from "next"; |
1 | 2 | import Image from "next/image"; |
2 | 3 | import Link from "next/link"; |
3 | 4 | import type { Organization, WebPage, WithContext } from "schema-dts"; |
@@ -46,24 +47,22 @@ import { |
46 | 47 | pageData, |
47 | 48 | services |
48 | 49 | } from "./data"; |
49 | | -import { Metadata } from "next"; |
50 | 50 | import { dynamicOpengraph } from "@/lib/default-metadata"; |
51 | 51 |
|
52 | | -const { github, socials, title, url, description } = data; |
| 52 | +const { github, socials, title, url } = data; |
53 | 53 |
|
54 | 54 | export async function generateMetadata(props: { |
55 | 55 | params: Promise<{ lang: SupportedLanguage }>; |
56 | 56 | }): Promise<Metadata> { |
57 | 57 | const { lang } = await props.params; |
58 | | - |
59 | | - const meta: any = { |
| 58 | + const meta: Metadata = { |
60 | 59 | title: mainHeroHeading(lang), |
61 | 60 | description: mainHeroDesc(lang), |
62 | 61 | alternates: { |
63 | | - canonical: `https://hyperjump.tech/${lang}`, |
| 62 | + canonical: `${url}/${lang}`, |
64 | 63 | languages: (supportedLanguages as SupportedLanguage[]).reduce( |
65 | 64 | (acc, l) => { |
66 | | - acc[l] = `https://hyperjump.tech/${l}`; |
| 65 | + acc[l] = `${url}/${l}`; |
67 | 66 | return acc; |
68 | 67 | }, |
69 | 68 | {} as Record<string, string> |
@@ -290,7 +289,7 @@ function JsonLdOrganization() { |
290 | 289 | "@type": "Organization", |
291 | 290 | name: title, |
292 | 291 | url, |
293 | | - logo: "https://hyperjump.tech/images/hyperjump-colored.png", |
| 292 | + logo: `${url}/images/hyperjump-colored.png`, |
294 | 293 | address: { |
295 | 294 | "@type": "PostalAddress", |
296 | 295 | streetAddress: |
|
0 commit comments