Skip to content

Commit bc3eb85

Browse files
committed
Actually fix meta tags
1 parent 8c986fa commit bc3eb85

23 files changed

+262
-219
lines changed

package-lock.json

+45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@
4242
"postcss": "^8.4.21",
4343
"tailwindcss": "^3.2.7"
4444
}
45-
}
45+
}

src/assets/state/team.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export const people = {
1818
"rik": {
1919
image: RikPicture,
2020
fullName: "Rik den Breejen",
21+
firstName: "Rik",
22+
lastName: "den Breejen",
23+
gender: "Male",
2124
title: "Lead Developer & Founder",
2225
links: [
2326
{

src/components/head/OgArticleMeta.tsx

-29
This file was deleted.

src/components/head/OgImageMeta.tsx

-37
This file was deleted.

src/components/head/OgMeta.tsx

-48
This file was deleted.

src/components/head/OgProfileMeta.tsx

-23
This file was deleted.

src/components/head/utils/toOpenGraph.tsx

-35
This file was deleted.

src/pages/404.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import LinkButton from "@/components/controls/LinkButton";
88
import Button from "@/components/controls/Button";
99
import Heading from "@/components/layout/heading";
1010

11-
const NotFound: Page = ({ }) => {
11+
import { makeOgMeta } from "@/utils/opengraph";
12+
13+
const NotFound: Page = ({ pathname }) => {
1214
const router = useRouter();
1315

1416
return (
1517
<>
1618
<Head>
17-
<title>404 - Commit Rocket</title>
19+
{makeOgMeta({ title: "404", pathname })}
1820
</Head>
1921
<main className="flex items-center justify-center flex-1 w-full pb-8" aria-labelledby="not-found">
2022
<div className="flex flex-col gap-2 p-8 text-center border-2 rounded-md border-primary">

src/pages/_app.tsx

+13-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ import '@/styles/main.css';
33
import { useCallback, useEffect, useRef, useState } from "react";
44
import { motion, useReducedMotion, MotionConfig, AnimatePresence } from "framer-motion";
55
import type { AppProps } from 'next/app';
6-
import Head from "next/head";
76

87
import Header from "@/components/navigation/Header";
98
import Footer from "@/components/navigation/Footer";
109
import GoogleAnalytics from "@/components/analytics/GoogleAnalytics";
10+
import Head from "next/head";
11+
12+
import BannerImage from "@/assets/images/brand/commit-rocket-logo.webp"
13+
14+
import { makeOgMeta } from "@/utils/opengraph";
1115

1216

1317
const pageTransition = {
@@ -56,10 +60,17 @@ export default function App({ Component, pageProps, router }: AppProps) {
5660
});
5761
}, 1);
5862
}, []);
59-
console.log(router);
6063

6164
return (
6265
<MotionConfig reducedMotion="user">
66+
<Head>
67+
{makeOgMeta({
68+
title: "Commit Rocket",
69+
description: "Commit Rocket, the next-gen git client",
70+
image: BannerImage,
71+
imageAlt: "Commit Rocket Logo"
72+
})}
73+
</Head>
6374
<GoogleAnalytics />
6475
<div className="flex flex-col font-sans">
6576
<Header />

src/pages/_document.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import OgMeta from "@/components/head/OgMeta";
21
import { Head, Html, Main, NextScript } from 'next/document';
32

43
export default function Document() {

src/pages/about.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ import projects from "@/assets/state/projects";
77

88
import Heading from "@/components/layout/heading";
99
import Project from "@/components/pages/about/Project";
10+
import { makeOgMeta } from "@/utils/opengraph";
1011

11-
const AboutPage: Page = () => {
12+
const AboutPage: Page = ({ pathname }) => {
1213
return (
1314
<>
1415
<Head>
15-
<title>About - Commit Rocket</title>
16+
{makeOgMeta({ title: "About", pathname })}
1617
</Head>
1718
<main aria-labelledby="about" className="flex flex-col flex-1 w-full gap-8 pb-8 max-w-7xl">
1819
<Heading.H1 id="about" className="text-center text-secondary">

0 commit comments

Comments
 (0)