aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/templates/about.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-18 18:09:50 +0900
committernsfisis <nsfisis@gmail.com>2023-03-18 18:12:23 +0900
commit12035272d44d92cd2360aeff88d499db67fe1949 (patch)
treeb9366110badb650b7d0af84330dd69df4bd71bcf /nuldoc-src/templates/about.ts
parentb98d324fe7eb37e7004926843feede7e636c3301 (diff)
downloadblog.nsfisis.dev-12035272d44d92cd2360aeff88d499db67fe1949.tar.gz
blog.nsfisis.dev-12035272d44d92cd2360aeff88d499db67fe1949.tar.zst
blog.nsfisis.dev-12035272d44d92cd2360aeff88d499db67fe1949.zip
refactor: use Page instead of Document
Diffstat (limited to 'nuldoc-src/templates/about.ts')
-rw-r--r--nuldoc-src/templates/about.ts115
1 files changed, 0 insertions, 115 deletions
diff --git a/nuldoc-src/templates/about.ts b/nuldoc-src/templates/about.ts
deleted file mode 100644
index 2f20aa9..0000000
--- a/nuldoc-src/templates/about.ts
+++ /dev/null
@@ -1,115 +0,0 @@
-import { Document } from "../docbook/document.ts";
-import { Config } from "../config.ts";
-import {
- el,
- linkElement,
- metaElement,
- stylesheetLinkElement,
- text,
-} from "./utils.ts";
-
-export default async function generateAbout(
- config: Config,
-): Promise<Document> {
- const head = el(
- "head",
- [],
- metaElement([["charset", "UTF-8"]]),
- metaElement([["name", "viewport"], [
- "content",
- "width=device-width, initial-scale=1.0",
- ]]),
- metaElement([["name", "author"], ["content", config.blog.author]]),
- metaElement([["name", "copyright"], [
- "content",
- `&copy; ${config.blog.siteCopyrightYear} ${config.blog.author}`,
- ]]),
- metaElement([["name", "description"], [
- "content",
- "このサイトの著者について",
- ]]),
- linkElement("icon", "/favicon.svg", "image/svg+xml"),
- el("title", [], text(`About | ${config.blog.siteName}`)),
- await stylesheetLinkElement("/style.css", config),
- );
- const body = el(
- "body",
- [["class", "single"]],
- el(
- "header",
- [["class", "header"]],
- el(
- "nav",
- [["class", "nav"]],
- el(
- "ul",
- [],
- el(
- "li",
- [["class", "logo"]],
- el("a", [["href", "/"]], text(config.blog.siteName)),
- ),
- el(
- "li",
- [],
- el("a", [["href", "/about"]], text("About")),
- ),
- el(
- "li",
- [],
- el("a", [["href", "/posts"]], text("Posts")),
- ),
- el(
- "li",
- [],
- el("a", [["href", "/slides"]], text("Slides")),
- ),
- ),
- ),
- ),
- el(
- "main",
- [["class", "main"]],
- el(
- "article",
- [["class", "post-single"]],
- el(
- "header",
- [["class", "post-header"]],
- el(
- "h1",
- [["class", "post-title"]],
- text("About"),
- ),
- ),
- el(
- "div",
- [["class", "post-content"]],
- text("WIP"),
- ),
- ),
- ),
- el(
- "footer",
- [["class", "footer"]],
- text(
- `&copy; ${config.blog.siteCopyrightYear} ${config.blog.author}`,
- ),
- ),
- );
- const html = el(
- "html",
- [["lang", "ja-JP"]],
- head,
- body,
- );
- return new Document(
- el("__root__", [], html),
- "<about>",
- "/about/",
- "About",
- "このサイトの著者について",
- [],
- [],
- );
-}