summaryrefslogtreecommitdiff
path: root/web/src/index-page.tsx
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2026-02-11 02:05:39 +0100
committernavewindre <boneyaard@gmail.com>2026-02-11 02:05:39 +0100
commitd9d55620a6f4f44b2c5069da107b2b3b111390ed (patch)
treefbee83ccabeee18a04a691d61b60f68e98fa6553 /web/src/index-page.tsx
parent3032a8495174f4f583f52c4e9429b6d4d357dc0c (diff)
seo renderer
Diffstat (limited to 'web/src/index-page.tsx')
-rw-r--r--web/src/index-page.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/src/index-page.tsx b/web/src/index-page.tsx
index a754ef6..71a2fdc 100644
--- a/web/src/index-page.tsx
+++ b/web/src/index-page.tsx
@@ -3,6 +3,8 @@ import Home from "./home";
import Blog from "./blog";
import Pkgs from "./pkg";
+JSX.setDefaultTitle( "networkheaven.net" );
+
JSX.addRoute( "/", () => <Home /> );
JSX.addRoute( "/blog", () => <Blog /> );
JSX.addRoute( "/blog/*", () => <Blog /> );
@@ -10,6 +12,7 @@ JSX.addRoute( "/pkg", () => <Pkgs /> );
JSX.addRoute( "/pkg/*", () => <Pkgs /> );
window.onpopstate = JSX.onPopState;
+document.head.appendChild( <link rel="shortcut icon" href="/static/nh.ico" /> );
const url = new URL( window.location.href );
JSX.navigateParams( url.pathname, url.searchParams.entries() );