diff options
Diffstat (limited to 'vhosts/blog/nuldoc-src')
| -rw-r--r-- | vhosts/blog/nuldoc-src/components/page_layout.ts | 5 | ||||
| -rw-r--r-- | vhosts/blog/nuldoc-src/pages/home.ts | 1 | ||||
| -rw-r--r-- | vhosts/blog/nuldoc-src/pages/post_list.ts | 1 | ||||
| -rw-r--r-- | vhosts/blog/nuldoc-src/pages/slide_list.ts | 1 | ||||
| -rw-r--r-- | vhosts/blog/nuldoc-src/pages/tag.ts | 1 |
5 files changed, 9 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), diff --git a/vhosts/blog/nuldoc-src/pages/home.ts b/vhosts/blog/nuldoc-src/pages/home.ts index a240278a..adecb59b 100644 --- a/vhosts/blog/nuldoc-src/pages/home.ts +++ b/vhosts/blog/nuldoc-src/pages/home.ts @@ -81,6 +81,7 @@ export async function generateHomePage(config: Config): Promise<HomePage> { metaDescription: "nsfisis のブログサイト", metaKeywords: [], metaTitle: config.blog.siteName, + metaAtomFeedHref: `https://${config.blog.fqdn}/atom.xml`, requiresSyntaxHighlight: false, }, body, diff --git a/vhosts/blog/nuldoc-src/pages/post_list.ts b/vhosts/blog/nuldoc-src/pages/post_list.ts index daeb8b0b..7cee87e7 100644 --- a/vhosts/blog/nuldoc-src/pages/post_list.ts +++ b/vhosts/blog/nuldoc-src/pages/post_list.ts @@ -49,6 +49,7 @@ export async function generatePostListPage( metaDescription: "投稿した記事の一覧", metaKeywords: [], metaTitle: `${pageTitle}|${config.blog.siteName}`, + metaAtomFeedHref: `https://${config.blog.fqdn}/posts/atom.xml`, requiresSyntaxHighlight: false, }, body, diff --git a/vhosts/blog/nuldoc-src/pages/slide_list.ts b/vhosts/blog/nuldoc-src/pages/slide_list.ts index 293e43b3..0b59b1dc 100644 --- a/vhosts/blog/nuldoc-src/pages/slide_list.ts +++ b/vhosts/blog/nuldoc-src/pages/slide_list.ts @@ -50,6 +50,7 @@ export async function generateSlideListPage( metaDescription: "登壇したイベントで使用したスライドの一覧", metaKeywords: [], metaTitle: `${pageTitle}|${config.blog.siteName}`, + metaAtomFeedHref: `https://${config.blog.fqdn}/slides/atom.xml`, requiresSyntaxHighlight: false, }, body, diff --git a/vhosts/blog/nuldoc-src/pages/tag.ts b/vhosts/blog/nuldoc-src/pages/tag.ts index 5ee7143a..ef79065d 100644 --- a/vhosts/blog/nuldoc-src/pages/tag.ts +++ b/vhosts/blog/nuldoc-src/pages/tag.ts @@ -45,6 +45,7 @@ export async function generateTagPage( metaDescription: `タグ「${tagLabel}」のついた記事またはスライドの一覧`, metaKeywords: [tagLabel], metaTitle: `${pageTitle}|${config.blog.siteName}`, + metaAtomFeedHref: `https://${config.blog.fqdn}/tags/${tagSlug}/atom.xml`, requiresSyntaxHighlight: false, }, body, |
