From 45c6fb54a0088a0948c64476e9abcbd1e1f49072 Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 25 Sep 2024 10:24:36 +0200 Subject: [PATCH] chore: update meta tags --- app/root.tsx | 2 +- app/routes/blog.tsx | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/root.tsx b/app/root.tsx index 852de44..c1924ce 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -24,7 +24,7 @@ export const meta: MetaFunction = () => [ charSet: "utf-8", }, { - title: "nullndr", + title: "Nullndr", }, { property: "viewport", diff --git a/app/routes/blog.tsx b/app/routes/blog.tsx index fefb98d..a18b8c5 100644 --- a/app/routes/blog.tsx +++ b/app/routes/blog.tsx @@ -1,8 +1,25 @@ +import type { MetaFunction } from "@remix-run/node"; import { Link } from "@remix-run/react"; import { Outlet } from "react-router-dom"; import { LinkWrapper } from "~/components/LinkWrapper"; import { useMatch } from "~/hooks/useMatch"; +export const meta: MetaFunction = () => { + return [ + { + title: "Nullndr's blog", + }, + { + property: "og:title", + content: "Nullndr's blog", + }, + { + property: "description", + content: "Another blog by Nullndr.", + }, + ]; +}; + export default function () { const { handle } = useMatch();