85d54493f01d110bddde631b82558953222b656a diff --git a/src/render.ts b/src/render.ts index bf1022ffeb7f6c870bcbd2deb6a9f4383c07daf8..0952931f311cf185accc55c8626f94420c94847f 100644 --- a/src/render.ts +++ b/src/render.ts @@ -3,7 +3,7 @@ import { marked } from "marked"; const STYLE_CSS = "./public/style.css"; const css = await Bun.file(STYLE_CSS).text(); -export type Section = "home" | "games" | "agents" | "leaderboard"; +export type Section = "home" | "games" | "guides" | "agents" | "leaderboard"; export interface PageOptions { title: string; @@ -25,7 +25,7 @@ const navLink = (href: string, label: string, active: boolean): string => { return `${label}`; }; -const nav = (active?: Section): string => ``; +const nav = (active?: Section): string => ``; export const renderPage = async (opts: PageOptions): Promise => { const body = await marked.parse(opts.bodyMarkdown, { gfm: true, breaks: false }); diff --git a/src/server.ts b/src/server.ts index 48bca4a28c0a1f05cb50945e73643904f4a52013..7bedfbd53c0a656d0ad4298f02e83ad9de3f98be 100644 --- a/src/server.ts +++ b/src/server.ts @@ -705,7 +705,7 @@ ${rows} description: "Practical TDD walkthroughs for Claude Code, Cursor, Aider and other AI coding agents — keep your agent honest with red→green→refactor commits, scored by tdd.md.", bodyMarkdown: body, ogPath: "https://tdd.md/guides", - active: "games", + active: "guides", }); return htmlResponse(html); }, @@ -728,7 +728,7 @@ ${rows} description: entry.description, bodyMarkdown: md, ogPath: `https://tdd.md/guides/${slug}`, - active: "games", + active: "guides", }); return htmlResponse(html); },