aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-16 21:39:08 +0900
committernsfisis <nsfisis@gmail.com>2023-03-16 21:43:34 +0900
commit0d11c3265aa66bd5f7c207cb00c10f9ded29e851 (patch)
treebe77960131f18ce21129cba096f298dbe18e2635 /nuldoc-src
parent7b6319986030fc8a2fb5f851a431b5113e774f60 (diff)
downloadblog.nsfisis.dev-0d11c3265aa66bd5f7c207cb00c10f9ded29e851.tar.gz
blog.nsfisis.dev-0d11c3265aa66bd5f7c207cb00c10f9ded29e851.tar.zst
blog.nsfisis.dev-0d11c3265aa66bd5f7c207cb00c10f9ded29e851.zip
feat(style): replace style.css with my own one
Diffstat (limited to 'nuldoc-src')
-rw-r--r--nuldoc-src/templates/post.ts28
-rw-r--r--nuldoc-src/templates/post_list.ts28
-rw-r--r--nuldoc-src/templates/tag.ts28
3 files changed, 69 insertions, 15 deletions
diff --git a/nuldoc-src/templates/post.ts b/nuldoc-src/templates/post.ts
index 9e1097d..c89240c 100644
--- a/nuldoc-src/templates/post.ts
+++ b/nuldoc-src/templates/post.ts
@@ -46,9 +46,8 @@ export default async function convertPost(
headChildren.push(
el("title", [], text(`${doc.title} | ${config.blog.siteName}`)),
);
- headChildren.push(await stylesheetLinkElement("/hl.css", config));
headChildren.push(await stylesheetLinkElement("/style.css", config));
- headChildren.push(await stylesheetLinkElement("/custom.css", config));
+ headChildren.push(await stylesheetLinkElement("/hl.css", config));
const head = el("head", [], ...headChildren);
const body = el(
"body",
@@ -60,9 +59,28 @@ export default async function convertPost(
"nav",
[["class", "nav"]],
el(
- "p",
- [["class", "logo"]],
- el("a", [["href", "/"]], text(config.blog.siteName)),
+ "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")),
+ ),
),
),
),
diff --git a/nuldoc-src/templates/post_list.ts b/nuldoc-src/templates/post_list.ts
index bd91840..f60eb54 100644
--- a/nuldoc-src/templates/post_list.ts
+++ b/nuldoc-src/templates/post_list.ts
@@ -45,9 +45,8 @@ export default async function convertPostList(
metaElement([["name", "description"], ["content", doc.summary]]),
linkElement("icon", "/favicon.svg", "image/svg+xml"),
el("title", [], text(`${doc.title} | ${config.blog.siteName}`)),
- await stylesheetLinkElement("/hl.css", config),
await stylesheetLinkElement("/style.css", config),
- await stylesheetLinkElement("/custom.css", config),
+ await stylesheetLinkElement("/hl.css", config),
);
const body = el(
"body",
@@ -59,9 +58,28 @@ export default async function convertPostList(
"nav",
[["class", "nav"]],
el(
- "p",
- [["class", "logo"]],
- el("a", [["href", "/"]], text(config.blog.siteName)),
+ "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")),
+ ),
),
),
),
diff --git a/nuldoc-src/templates/tag.ts b/nuldoc-src/templates/tag.ts
index c3080e8..4038b69 100644
--- a/nuldoc-src/templates/tag.ts
+++ b/nuldoc-src/templates/tag.ts
@@ -52,9 +52,8 @@ export default async function convertTag(
metaElement([["name", "keywords"], ["content", tagLabel]]),
linkElement("icon", "/favicon.svg", "image/svg+xml"),
el("title", [], text(`${doc.title} | ${config.blog.siteName}`)),
- await stylesheetLinkElement("/hl.css", config),
await stylesheetLinkElement("/style.css", config),
- await stylesheetLinkElement("/custom.css", config),
+ await stylesheetLinkElement("/hl.css", config),
];
const head = el("head", [], ...headChildren);
const body = el(
@@ -67,9 +66,28 @@ export default async function convertTag(
"nav",
[["class", "nav"]],
el(
- "p",
- [["class", "logo"]],
- el("a", [["href", "/"]], text(config.blog.siteName)),
+ "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")),
+ ),
),
),
),