fix: add SITE.title in PostDetails title tag for consistent look (#247)

Add `SITE.title` in PostDetails page to be the same as other page title tags.

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
This commit is contained in:
Alan Ye
2024-01-25 12:03:32 +08:00
committed by GitHub
parent b3a1d9d369
commit 556df2d21a
+2 -1
View File
@@ -7,6 +7,7 @@ import Datetime from "@components/Datetime";
import type { CollectionEntry } from "astro:content";
import { slugifyStr } from "@utils/slugify";
import ShareLinks from "@components/ShareLinks.astro";
import { SITE } from "@config";
export interface Props {
post: CollectionEntry<"blog">;
@@ -34,7 +35,7 @@ const ogUrl = new URL(
).href;
const layoutProps = {
title,
title: `${title} | ${SITE.title}`,
author,
description,
pubDatetime,