import { Config } from "../config.ts"; import { JSXNode } from "myjsx/jsx-runtime"; import StaticStylesheet from "./StaticStylesheet.tsx"; type Props = { metaCopyrightYear: number; metaDescription: string; metaKeywords?: string[]; metaTitle: string; metaAtomFeedHref?: string; requiresSyntaxHighlight?: boolean; config: Config; children: JSXNode; }; export default function PageLayout( { metaCopyrightYear, metaDescription, metaKeywords, metaTitle, metaAtomFeedHref, requiresSyntaxHighlight: _, config, children, }: Props, ) { return ( {metaKeywords && metaKeywords.length !== 0 && } {/* https://b.hatena.ne.jp/help/entry/nocomment */} {metaAtomFeedHref && ( )} {metaTitle} {children} ); }