aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/pages/tag.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-19 04:32:36 +0900
committernsfisis <nsfisis@gmail.com>2023-03-19 04:37:08 +0900
commitf2424f306be40e27c76def020ecb2ce1ec2aad4e (patch)
tree4ab51d9d20707dac51a4a2be60bc476bbac9bdbd /nuldoc-src/pages/tag.ts
parentca7a609fef1167374f7c36ae87be154b0142dd47 (diff)
downloadblog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.tar.gz
blog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.tar.zst
blog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.zip
refactor: change type of Revision.date
Diffstat (limited to 'nuldoc-src/pages/tag.ts')
-rw-r--r--nuldoc-src/pages/tag.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/nuldoc-src/pages/tag.ts b/nuldoc-src/pages/tag.ts
index fbab8b1..cb60d21 100644
--- a/nuldoc-src/pages/tag.ts
+++ b/nuldoc-src/pages/tag.ts
@@ -40,9 +40,7 @@ export async function generateTagPage(
const html = await pageLayout(
{
- metaCopyrightYear: parseInt(
- getPostCreatedDate(pages[pages.length - 1]).substring(0, 4),
- ),
+ metaCopyrightYear: getPostCreatedDate(pages[pages.length - 1]).year,
metaDescription: `タグ「${tagLabel}」のついた記事またはスライドの一覧`,
metaKeywords: [tagLabel],
metaTitle: `${pageTitle} | ${config.blog.siteName}`,