diff options
Diffstat (limited to 'nuldoc-src/pages/slide.ts')
| -rw-r--r-- | nuldoc-src/pages/slide.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/nuldoc-src/pages/slide.ts b/nuldoc-src/pages/slide.ts index e5f40a0..a75aeb6 100644 --- a/nuldoc-src/pages/slide.ts +++ b/nuldoc-src/pages/slide.ts @@ -3,7 +3,7 @@ import { globalFooter } from "../components/global_footer.ts"; import { globalHeader } from "../components/global_header.ts"; import { pageLayout } from "../components/page_layout.ts"; import { staticScriptElement } from "../components/utils.ts"; -import { Config } from "../config.ts"; +import { Config, getTagLabel } from "../config.ts"; import { el, text } from "../dom.ts"; import { Page } from "../page.ts"; import { dateToString, Revision } from "../revision.ts"; @@ -53,9 +53,7 @@ export async function generateSlidePage( "a", [["href", `/tags/${slug}/`]], text( - (config.blog.tagLabels as { - [key: string]: string; - })[slug], + getTagLabel(config, slug), ), ), ) @@ -113,9 +111,7 @@ export async function generateSlidePage( { metaCopyrightYear: getPostCreatedDate(slide).year, metaDescription: slide.title, - metaKeywords: slide.tags.map((slug) => - (config.blog.tagLabels as { [key: string]: string })[slug] - ), + metaKeywords: slide.tags.map((slug) => getTagLabel(config, slug)), metaTitle: `${slide.event} (${slide.talkType}) | ${config.blog.siteName}`, requiresSyntaxHighlight: true, }, |
