aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/pages/tag.ts
diff options
context:
space:
mode:
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}`,