From 0ed772e1c2691f545ee08221893ac98266322ac5 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sun, 2 Nov 2025 22:50:56 +0900
Subject: feat(nuldoc): Update site header 2

---
 services/nuldoc/nuldoc-src/components/PageLayout.tsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'services/nuldoc/nuldoc-src/components/PageLayout.tsx')

diff --git a/services/nuldoc/nuldoc-src/components/PageLayout.tsx b/services/nuldoc/nuldoc-src/components/PageLayout.tsx
index 78a5cde..b32f229 100644
--- a/services/nuldoc/nuldoc-src/components/PageLayout.tsx
+++ b/services/nuldoc/nuldoc-src/components/PageLayout.tsx
@@ -9,6 +9,7 @@ type Props = {
   metaTitle: string;
   metaAtomFeedHref?: string;
   requiresSyntaxHighlight?: boolean;
+  site: "default" | "about" | "blog" | "slides";
   config: Config;
   children: JSXNode;
 };
@@ -21,6 +22,7 @@ export default function PageLayout(
     metaTitle,
     metaAtomFeedHref,
     requiresSyntaxHighlight: _,
+    site,
     config,
     children,
   }: Props,
@@ -30,10 +32,10 @@ export default function PageLayout(
       <head>
         <meta charset="UTF-8" />
         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-        <meta name="author" content={config.blog.author} />
+        <meta name="author" content={config.site.author} />
         <meta
           name="copyright"
-          content={`&copy; ${metaCopyrightYear} ${config.blog.author}`}
+          content={`&copy; ${metaCopyrightYear} ${config.site.author}`}
         />
         <meta name="description" content={metaDescription} />
         {metaKeywords && metaKeywords.length !== 0 &&
@@ -41,7 +43,7 @@ export default function PageLayout(
         <meta property="og:type" content="article" />
         <meta property="og:title" content={metaTitle} />
         <meta property="og:description" content={metaDescription} />
-        <meta property="og:site_name" content={config.blog.siteName} />
+        <meta property="og:site_name" content={config.sites[site].siteName} />
         <meta property="og:locale" content="ja_JP" />
         {/* https://b.hatena.ne.jp/help/entry/nocomment */}
         <meta name="Hatena::Bookmark" content="nocomment" />
-- 
cgit v1.2.3-70-g09d2

