From 8f02a537a6e0b139fae3219f148e5ea1458ab3c8 Mon Sep 17 00:00:00 2001 From: juprodh Date: Fri, 17 Jul 2026 21:06:11 +0800 Subject: [PATCH] Polish aria-current on active note, danger-foreground token, non-sticky mobile footer, balanced titles --- src/views/home.ts | 2 +- src/views/layout.ts | 10 +++++----- src/views/theme/themes.ts | 3 +++ src/views/theme/tokens.ts | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/views/home.ts b/src/views/home.ts index 17b363b..7291c18 100644 --- a/src/views/home.ts +++ b/src/views/home.ts @@ -44,7 +44,7 @@ export function homePage(
-

${msg.home.tagline}

+

${msg.home.tagline}

${msg.home.heroDescription}

${msg.home.createAWiki} diff --git a/src/views/layout.ts b/src/views/layout.ts index 78862c5..f4e170a 100644 --- a/src/views/layout.ts +++ b/src/views/layout.ts @@ -133,7 +133,7 @@ function renderWithSidebar(body: string, options: LayoutOptions): string { const href = handle ? noteUrl(handle, slug, n.slug) : `/${slug}/${n.slug}`; - return `
  • ${escapeHtml(n.title)}
  • `; + return `
  • ${escapeHtml(n.title)}
  • `; }) .join("\n")}`; @@ -224,7 +224,7 @@ function renderWithSidebar(body: string, options: LayoutOptions): string { ${noteActionsBlock}
    ${adminLinks} @@ -397,13 +397,13 @@ ${extraScripts} ${ options?.sidebarNotes ? renderWithSidebar( - `${options?.pageTitle ? `

    ${escapeHtml(options.pageTitle)}

    ` : ""}${body}`, + `${options?.pageTitle ? `

    ${escapeHtml(options.pageTitle)}

    ` : ""}${body}`, options, ) - : `
    ${options?.pageTitle ? `

    ${escapeHtml(options.pageTitle)}

    ` : ""}${body}
    ` + : `
    ${options?.pageTitle ? `

    ${escapeHtml(options.pageTitle)}

    ` : ""}${body}
    ` } -