From 556df2d21af7ad7d89e2de67c27381097d7022bf Mon Sep 17 00:00:00 2001 From: Alan Ye <45558679+AlanYe-Dev@users.noreply.github.com> Date: Thu, 25 Jan 2024 12:03:32 +0800 Subject: [PATCH] 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 --- src/layouts/PostDetails.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/PostDetails.astro b/src/layouts/PostDetails.astro index a859505..61b04c8 100644 --- a/src/layouts/PostDetails.astro +++ b/src/layouts/PostDetails.astro @@ -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,