diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-11-02 22:50:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-11-02 22:50:56 +0900 |
| commit | 0ed772e1c2691f545ee08221893ac98266322ac5 (patch) | |
| tree | fc89bc0aa6f378d1575fe2a78a1b7c534d828505 /services/nuldoc/nuldoc-src/components/PageLayout.tsx | |
| parent | 0af80494361ec9b71e004e2c83c43170666acbd9 (diff) | |
| download | nsfisis.dev-0ed772e1c2691f545ee08221893ac98266322ac5.tar.gz nsfisis.dev-0ed772e1c2691f545ee08221893ac98266322ac5.tar.zst nsfisis.dev-0ed772e1c2691f545ee08221893ac98266322ac5.zip | |
feat(nuldoc): Update site header 2
Diffstat (limited to 'services/nuldoc/nuldoc-src/components/PageLayout.tsx')
| -rw-r--r-- | services/nuldoc/nuldoc-src/components/PageLayout.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
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={`© ${metaCopyrightYear} ${config.blog.author}`} + content={`© ${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" /> |
