diff options
Diffstat (limited to 'nuldoc-src/pages/tag.ts')
| -rw-r--r-- | nuldoc-src/pages/tag.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nuldoc-src/pages/tag.ts b/nuldoc-src/pages/tag.ts index cb60d21..f501cb3 100644 --- a/nuldoc-src/pages/tag.ts +++ b/nuldoc-src/pages/tag.ts @@ -3,7 +3,7 @@ import { globalHeader } from "../components/global_header.ts"; import { pageLayout } from "../components/page_layout.ts"; import { postPageEntry } from "../components/post_page_entry.ts"; import { slidePageEntry } from "../components/slide_page_entry.ts"; -import { Config } from "../config.ts"; +import { Config, getTagLabel } from "../config.ts"; import { el, text } from "../dom.ts"; import { Page } from "../page.ts"; import { getPostCreatedDate } from "./post.ts"; @@ -19,8 +19,7 @@ export async function generateTagPage( pages: TaggedPage[], config: Config, ): Promise<TagPage> { - const tagLabel = - (config.blog.tagLabels as { [key: string]: string })[tagSlug]; + const tagLabel = getTagLabel(config, tagSlug); const pageTitle = `タグ「${tagLabel}」一覧`; const body = el( |
