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.ts7
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,
};
}