mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user