diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-01 02:28:10 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-01 02:28:10 +0900 |
| commit | cd16ed5d6b46d91ae9ac7b2237d6405ad6715a4a (patch) | |
| tree | 0e00d7caf3031fa86decaa0cbc226cc1e521b914 /services/nuldoc/nuldoc-src/components/PageLayout.ts | |
| parent | d08e3edb65b215152aa26e3518fb2f2cd7071c4b (diff) | |
| parent | 1964f77d03eb647dcf46d63dde68d7ae7301604f (diff) | |
| download | nsfisis.dev-cd16ed5d6b46d91ae9ac7b2237d6405ad6715a4a.tar.gz nsfisis.dev-cd16ed5d6b46d91ae9ac7b2237d6405ad6715a4a.tar.zst nsfisis.dev-cd16ed5d6b46d91ae9ac7b2237d6405ad6715a4a.zip | |
Merge branch 'feat/ruby-rewrite'
Diffstat (limited to 'services/nuldoc/nuldoc-src/components/PageLayout.ts')
| -rw-r--r-- | services/nuldoc/nuldoc-src/components/PageLayout.ts | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/services/nuldoc/nuldoc-src/components/PageLayout.ts b/services/nuldoc/nuldoc-src/components/PageLayout.ts deleted file mode 100644 index f970c0b6..00000000 --- a/services/nuldoc/nuldoc-src/components/PageLayout.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Config } from "../config.ts"; -import { elem, Element, link, meta, Node } from "../dom.ts"; -import StaticStylesheet from "./StaticStylesheet.ts"; - -type Props = { - metaCopyrightYear: number; - metaDescription: string; - metaKeywords?: string[]; - metaTitle: string; - metaAtomFeedHref?: string; - requiresSyntaxHighlight?: boolean; - site: "default" | "about" | "blog" | "slides"; - config: Config; - children: Node; -}; - -export default async function PageLayout( - { - metaCopyrightYear, - metaDescription, - metaKeywords, - metaTitle, - metaAtomFeedHref, - requiresSyntaxHighlight: _, - site, - config, - children, - }: Props, -): Promise<Element> { - return elem( - "html", - { lang: "ja-JP" }, - elem( - "head", - {}, - meta({ charset: "UTF-8" }), - meta({ - name: "viewport", - content: "width=device-width, initial-scale=1.0", - }), - meta({ name: "author", content: config.site.author }), - meta({ - name: "copyright", - content: `© ${metaCopyrightYear} ${config.site.author}`, - }), - meta({ name: "description", content: metaDescription }), - metaKeywords && metaKeywords.length !== 0 - ? meta({ name: "keywords", content: metaKeywords.join(",") }) - : null, - 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.sites[site].siteName, - }), - meta({ property: "og:locale", content: "ja_JP" }), - meta({ name: "Hatena::Bookmark", content: "nocomment" }), - metaAtomFeedHref - ? link({ - rel: "alternate", - href: metaAtomFeedHref, - type: "application/atom+xml", - }) - : null, - link({ - rel: "icon", - href: "/favicon.svg", - type: "image/svg+xml", - }), - elem("title", {}, metaTitle), - await StaticStylesheet({ fileName: "/style.css", config }), - ), - children, - ); -} |
