mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +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 type { CollectionEntry } from "astro:content";
|
||||||
import { slugifyStr } from "@utils/slugify";
|
import { slugifyStr } from "@utils/slugify";
|
||||||
import ShareLinks from "@components/ShareLinks.astro";
|
import ShareLinks from "@components/ShareLinks.astro";
|
||||||
|
import { SITE } from "@config";
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
post: CollectionEntry<"blog">;
|
post: CollectionEntry<"blog">;
|
||||||
@@ -34,7 +35,7 @@ const ogUrl = new URL(
|
|||||||
).href;
|
).href;
|
||||||
|
|
||||||
const layoutProps = {
|
const layoutProps = {
|
||||||
title,
|
title: `${title} | ${SITE.title}`,
|
||||||
author,
|
author,
|
||||||
description,
|
description,
|
||||||
pubDatetime,
|
pubDatetime,
|
||||||
|
|||||||
Reference in New Issue
Block a user