This commit is contained in:
@@ -4,6 +4,7 @@ import type { Metadata } from "next";
|
||||
import { MDXRemote } from "next-mdx-remote/rsc";
|
||||
import remarkGfm from "remark-gfm";
|
||||
import { getAdjacentPosts, getAllPosts, getPost } from "@/lib/devblog";
|
||||
import { SITE_URL, LOGO_URL } from "@/lib/site";
|
||||
|
||||
type Props = { params: Promise<{ slug: string }> };
|
||||
|
||||
@@ -15,7 +16,7 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
|
||||
const { slug } = await params;
|
||||
const post = getPost(slug);
|
||||
if (!post) return {};
|
||||
const url = `https://highlandgamesstudio.com/devblog/${post.slug}`;
|
||||
const url = `${SITE_URL}/devblog/${post.slug}`;
|
||||
return {
|
||||
title: post.title,
|
||||
description: post.excerpt,
|
||||
@@ -109,7 +110,7 @@ export default async function DevblogPost({ params }: Props) {
|
||||
if (!post) notFound();
|
||||
|
||||
const { newer, older } = getAdjacentPosts(slug);
|
||||
const url = `https://highlandgamesstudio.com/devblog/${post.slug}`;
|
||||
const url = `${SITE_URL}/devblog/${post.slug}`;
|
||||
const jsonLd = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BlogPosting",
|
||||
@@ -126,7 +127,7 @@ export default async function DevblogPost({ params }: Props) {
|
||||
name: "Highland Games Studio",
|
||||
logo: {
|
||||
"@type": "ImageObject",
|
||||
url: "https://highlandgamesstudio.com/image/Studio/Logo Flat.png",
|
||||
url: LOGO_URL,
|
||||
},
|
||||
},
|
||||
mainEntityOfPage: { "@type": "WebPage", "@id": url },
|
||||
|
||||
Reference in New Issue
Block a user