diff --git a/src/back/routes/common/navbar.ts b/src/back/routes/common/navbar.ts index ccdce6c..445f6f8 100644 --- a/src/back/routes/common/navbar.ts +++ b/src/back/routes/common/navbar.ts @@ -15,7 +15,11 @@ export default async function navbar(ctx: BaseContext) { ]; const linksHTML = linkData - .map((link) => `
  • ${link.text}
  • `) + .map((link) => + link.url === new URL(ctx.url, "https://a.com").pathname + ? `
  • ${link.text}
  • ` + : /* HTML */ `
  • ${link.text}
  • ` + ) .join("\n"); return /* HTML */ `