summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/components
diff options
context:
space:
mode:
Diffstat (limited to 'vhosts/blog/nuldoc-src/components')
-rw-r--r--vhosts/blog/nuldoc-src/components/page_layout.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/vhosts/blog/nuldoc-src/components/page_layout.ts b/vhosts/blog/nuldoc-src/components/page_layout.ts
index 5582c405..90eb3b2c 100644
--- a/vhosts/blog/nuldoc-src/components/page_layout.ts
+++ b/vhosts/blog/nuldoc-src/components/page_layout.ts
@@ -7,6 +7,7 @@ type Params = {
metaDescription: string;
metaKeywords: string[];
metaTitle: string;
+ metaAtomFeedHref?: string;
requiresSyntaxHighlight: boolean;
};
@@ -16,6 +17,7 @@ export async function pageLayout(
metaDescription,
metaKeywords,
metaTitle,
+ metaAtomFeedHref,
requiresSyntaxHighlight,
}: Params,
body: Element,
@@ -64,6 +66,9 @@ export async function pageLayout(
["property", "og:locale"],
["content", "ja_JP"],
]),
+ ...(metaAtomFeedHref
+ ? [linkElement("alternate", metaAtomFeedHref, "application/atom+xml")]
+ : []),
linkElement("icon", "/favicon.svg", "image/svg+xml"),
el("title", [], text(metaTitle)),
await stylesheetLinkElement("/style.css", config),