diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-03-18 19:42:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-03-18 19:42:37 +0900 |
| commit | 032dc3c5e6d0ef84a9f4ea6be10e19b7f43c53b8 (patch) | |
| tree | 0909d231d62f43f3d2a3b7e1bd9dddf3a7be365e /nuldoc-src/pages/tag.ts | |
| parent | 1301f9d35cec5d24b772518b1daa7ffe15684525 (diff) | |
| download | blog.nsfisis.dev-032dc3c5e6d0ef84a9f4ea6be10e19b7f43c53b8.tar.gz blog.nsfisis.dev-032dc3c5e6d0ef84a9f4ea6be10e19b7f43c53b8.tar.zst blog.nsfisis.dev-032dc3c5e6d0ef84a9f4ea6be10e19b7f43c53b8.zip | |
feat(content): add /tags/ page
Diffstat (limited to 'nuldoc-src/pages/tag.ts')
| -rw-r--r-- | nuldoc-src/pages/tag.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nuldoc-src/pages/tag.ts b/nuldoc-src/pages/tag.ts index c9eaf7e..b6f136a 100644 --- a/nuldoc-src/pages/tag.ts +++ b/nuldoc-src/pages/tag.ts @@ -6,7 +6,10 @@ import { el, text } from "../dom.ts"; import { Page } from "../page.ts"; import { getPostCreatedDate, getPostUpdatedDate, PostPage } from "./post.ts"; -export type TagPage = Page; +export interface TagPage extends Page { + tagSlug: string; + tagLabel: string; +} export async function generateTagPage( tagSlug: string, @@ -87,5 +90,7 @@ export async function generateTagPage( renderer: "html", destFilePath: `/tags/${tagSlug}/index.html`, href: `/tags/${tagSlug}/`, + tagSlug: tagSlug, + tagLabel: tagLabel, }; } |
