diff --git a/Documentation/templates-src/NetCord/src/nav.ts b/Documentation/templates-src/NetCord/src/nav.ts index ee16249cf..325e01ae7 100644 --- a/Documentation/templates-src/NetCord/src/nav.ts +++ b/Documentation/templates-src/NetCord/src/nav.ts @@ -3,7 +3,6 @@ import AnchorJs from "anchor-js"; import { render, html, nothing, TemplateResult } from "lit-html"; -// import { unsafeStatic, } from 'lit-html/static.js' import { breakWordLit, meta, isExternalHref, loc, options } from "./helper"; import { themePicker } from "./theme"; import { TocNode } from "./toc"; @@ -71,13 +70,28 @@ export async function renderNavbar(): Promise { const iconsForm = html`
${icons?.map( (i) => - html``, + { + if (i.href) { + return html``; + } else if (i.onclick) { + return html``; + } + + return nothing; + }, )} ${await themePicker(renderCore)}
`; diff --git a/Documentation/templates-src/NetCord/src/theme.ts b/Documentation/templates-src/NetCord/src/theme.ts index b0461740f..fd995b740 100644 --- a/Documentation/templates-src/NetCord/src/theme.ts +++ b/Documentation/templates-src/NetCord/src/theme.ts @@ -48,12 +48,14 @@ export async function themePicker(refresh: () => void) { const theme = getTheme(); const icon = theme === "light" ? "sun" : "moon"; - return html``; + >`; function toggleTheme(e) { e.preventDefault();